chore(common): add additional aliasses for simple hostpath persistence (#1287)

* chore(common): add additional aliasses for simple hostpath persistence

* hmm

* mountpath, dont use null

* use correct type

* whoops

* bump testrc2
This commit is contained in:
Kjeld Schouten-Lebbing
2021-11-06 18:56:41 +01:00
committed by GitHub
parent 23b59be9e2
commit 32c6f11de4
7 changed files with 50 additions and 26 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ name: testrc2
sources:
- https://github.com/Jackett/Jackett
type: application
version: 0.0.2
version: 0.0.3
annotations:
truecharts.org/catagories: |
- media
@@ -29,28 +29,12 @@ probes:
persistence:
simple-pvc:
enabled: true
annotationsList: []
annotations: {}
labelsList: []
labels: {}
type: simplePVC
forceName: ""
mountPath:
readOnly: false
nameOverride:
storageClass:
existingClaim:
subPath:
accessMode: ReadWriteOnce
size: 1Gi
retain: false
simple-hostpath:
enabled: true
type: simpleHP
hostPath: /usr
mountPath:
hostPathType: ""
readOnly: false
hostPathSimple: /usr
setPermissionsSimple: false
"ixCertificateAuthorities": {}
"ixCertificates":
+1 -1
View File
@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 8.5.0
version: 8.5.1
@@ -42,7 +42,7 @@ spec:
- {{ ( $values.accessMode | default "ReadWriteOnce" ) | quote }}
resources:
requests:
storage: {{ $values.size | default "100Gi" | quote }}
storage: {{ $values.size | default "999Gi" | quote }}
{{- if $values.storageClass }}
storageClassName: {{ if (eq "-" $values.storageClass) }}""{{- else if (eq "SCALE-ZFS" $values.storageClass ) }}{{ ( printf "%v-%v" "ix-storage-class" .Release.Name ) }}{{- else }}{{ $values.storageClass | quote }}{{- end }}
{{- else if $.Values.global.isSCALE }}
@@ -254,6 +254,12 @@
{{- end }}
{{- if eq .type "simpleHP" }}
{{- $_ := set . "type" "hostPath" }}
{{- if .setPermissionsSimple }}
{{- $_ := set . "setPermissions" .setPermissionsSimple }}
{{- end }}
{{- if .hostPathSimple }}
{{- $_ := set . "hostPath" .hostPathSimple }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
+22 -1
View File
@@ -675,9 +675,30 @@ persistence:
type: hostPath
# -- Which path on the host should be mounted.
hostPath: /dev
# -- Automatic set permissions using chown and chmod
setPermissions: false
# -- Where to mount the path in the main container.
# Defaults to the value of `hostPath`
mountPath: # /myDev
mountPath: "" # /myDev
# -- Specifying a hostPathType adds a check before trying to mount the path.
# See Kubernetes documentation for options.
hostPathType: ""
# -- Specify if the path should be mounted read-only.
readOnly: true
# -- Example of a Simple hostPath mount
# [[ref]]https://kubernetes.io/docs/concepts/storage/volumes/#hostpath)
# @default -- See below
host-simple-dev:
enabled: false
type: simpleHP
# -- Which path on the host should be mounted.
hostPathSimple: /dev
# -- Automatic set permissions using chown and chmod
setPermissionsSimple: false
# -- Where to mount the path in the main container.
# Defaults to the value of `hostPath`
mountPath: "" # /myDev
# -- Specifying a hostPathType adds a check before trying to mount the path.
# See Kubernetes documentation for options.
hostPathType: ""