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:
@@ -21,7 +21,7 @@ name: testrc2
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/Jackett/Jackett
|
- https://github.com/Jackett/Jackett
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.2
|
version: 0.0.3
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- media
|
- media
|
||||||
|
|||||||
@@ -29,28 +29,12 @@ probes:
|
|||||||
persistence:
|
persistence:
|
||||||
simple-pvc:
|
simple-pvc:
|
||||||
enabled: true
|
enabled: true
|
||||||
annotationsList: []
|
|
||||||
annotations: {}
|
|
||||||
labelsList: []
|
|
||||||
labels: {}
|
|
||||||
type: simplePVC
|
type: simplePVC
|
||||||
forceName: ""
|
|
||||||
mountPath:
|
|
||||||
readOnly: false
|
|
||||||
nameOverride:
|
|
||||||
storageClass:
|
|
||||||
existingClaim:
|
|
||||||
subPath:
|
|
||||||
accessMode: ReadWriteOnce
|
|
||||||
size: 1Gi
|
|
||||||
retain: false
|
|
||||||
simple-hostpath:
|
simple-hostpath:
|
||||||
enabled: true
|
enabled: true
|
||||||
type: simpleHP
|
type: simpleHP
|
||||||
hostPath: /usr
|
hostPathSimple: /usr
|
||||||
mountPath:
|
setPermissionsSimple: false
|
||||||
hostPathType: ""
|
|
||||||
readOnly: false
|
|
||||||
|
|
||||||
"ixCertificateAuthorities": {}
|
"ixCertificateAuthorities": {}
|
||||||
"ixCertificates":
|
"ixCertificates":
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ maintainers:
|
|||||||
name: common
|
name: common
|
||||||
sources: null
|
sources: null
|
||||||
type: library
|
type: library
|
||||||
version: 8.5.0
|
version: 8.5.1
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ spec:
|
|||||||
- {{ ( $values.accessMode | default "ReadWriteOnce" ) | quote }}
|
- {{ ( $values.accessMode | default "ReadWriteOnce" ) | quote }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ $values.size | default "100Gi" | quote }}
|
storage: {{ $values.size | default "999Gi" | quote }}
|
||||||
{{- if $values.storageClass }}
|
{{- 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 }}
|
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 }}
|
{{- else if $.Values.global.isSCALE }}
|
||||||
|
|||||||
@@ -254,6 +254,12 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq .type "simpleHP" }}
|
{{- if eq .type "simpleHP" }}
|
||||||
{{- $_ := set . "type" "hostPath" }}
|
{{- $_ := set . "type" "hostPath" }}
|
||||||
|
{{- if .setPermissionsSimple }}
|
||||||
|
{{- $_ := set . "setPermissions" .setPermissionsSimple }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .hostPathSimple }}
|
||||||
|
{{- $_ := set . "hostPath" .hostPathSimple }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -675,9 +675,30 @@ persistence:
|
|||||||
type: hostPath
|
type: hostPath
|
||||||
# -- Which path on the host should be mounted.
|
# -- Which path on the host should be mounted.
|
||||||
hostPath: /dev
|
hostPath: /dev
|
||||||
|
# -- Automatic set permissions using chown and chmod
|
||||||
|
setPermissions: false
|
||||||
# -- Where to mount the path in the main container.
|
# -- Where to mount the path in the main container.
|
||||||
# Defaults to the value of `hostPath`
|
# 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.
|
# -- Specifying a hostPathType adds a check before trying to mount the path.
|
||||||
# See Kubernetes documentation for options.
|
# See Kubernetes documentation for options.
|
||||||
hostPathType: ""
|
hostPathType: ""
|
||||||
|
|||||||
@@ -33,11 +33,18 @@
|
|||||||
description: "pvc"
|
description: "pvc"
|
||||||
- value: "hostPath"
|
- value: "hostPath"
|
||||||
description: "hostPath"
|
description: "hostPath"
|
||||||
|
- variable: setPermissionsSimple
|
||||||
|
label: "Automatic Permissions"
|
||||||
|
description: "Automatically set permissions on install"
|
||||||
|
schema:
|
||||||
|
show_if: [["type", "=", "simpleHP"]]
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
- variable: setPermissions
|
- variable: setPermissions
|
||||||
label: "Automatic Permissions"
|
label: "Automatic Permissions"
|
||||||
description: "Automatically set permissions on install"
|
description: "Automatically set permissions on install"
|
||||||
schema:
|
schema:
|
||||||
show_if: [["type", "=", "hostPath"],["type", "=", "simpleHP"]]
|
show_if: [["type", "=", "hostPath"]]
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
- variable: readOnly
|
- variable: readOnly
|
||||||
@@ -45,11 +52,17 @@
|
|||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
- variable: hostPathSimple
|
||||||
|
label: "hostPath"
|
||||||
|
description: "Path inside the container the storage is mounted"
|
||||||
|
schema:
|
||||||
|
show_if: [["type", "=", "simpleHP"]]
|
||||||
|
type: hostpath
|
||||||
- variable: hostPath
|
- variable: hostPath
|
||||||
label: "hostPath"
|
label: "hostPath"
|
||||||
description: "Path inside the container the storage is mounted"
|
description: "Path inside the container the storage is mounted"
|
||||||
schema:
|
schema:
|
||||||
show_if: [["type", "=", "hostPath"],["type", "=", "simpleHP"]]
|
show_if: [["type", "=", "hostPath"]]
|
||||||
type: hostpath
|
type: hostpath
|
||||||
- variable: mountPath
|
- variable: mountPath
|
||||||
label: "mountPath"
|
label: "mountPath"
|
||||||
@@ -73,9 +86,9 @@
|
|||||||
- variable: size
|
- variable: size
|
||||||
label: "Size quotum of storage"
|
label: "Size quotum of storage"
|
||||||
schema:
|
schema:
|
||||||
show_if: [["type", "=", "pvc"],["type", "=", "simplePVC"]]
|
show_if: [["type", "=", "pvc"]]
|
||||||
type: string
|
type: string
|
||||||
default: "100Gi"
|
default: "999Gi"
|
||||||
- variable: hostPathType
|
- variable: hostPathType
|
||||||
label: "(Advanced) hostPath Type"
|
label: "(Advanced) hostPath Type"
|
||||||
schema:
|
schema:
|
||||||
|
|||||||
Reference in New Issue
Block a user