Make host and container devicePath the same. (#356)
* Make host and container devicePath the same. * update Common and Common-test versions
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
apiVersion: v2
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
name: common-test
|
||||
version: 2.1.2
|
||||
version: 2.1.3
|
||||
# upstream_version:
|
||||
appVersion: none
|
||||
description: Helper chart to test different use cases of the common library
|
||||
|
||||
@@ -65,20 +65,6 @@ persistence:
|
||||
size: 1Gi
|
||||
storageClass: ""
|
||||
|
||||
# these values and names are set specifically with the unittests in mind.
|
||||
fixMountPermissions: false
|
||||
deviceMounts:
|
||||
test1:
|
||||
enabled: true
|
||||
emptyDir: true
|
||||
mountPath: "/test1"
|
||||
hostPath: "/tmp"
|
||||
test2:
|
||||
enabled: true
|
||||
emptyDir: false
|
||||
mountPath: "/test2"
|
||||
hostPath: "/tmp"
|
||||
|
||||
# these values and names are set specifically with the unittests in mind.
|
||||
customStorage:
|
||||
- name: "test3"
|
||||
@@ -92,3 +78,14 @@ customStorage:
|
||||
setPermissions: true
|
||||
mountPath: "/test4"
|
||||
hostPath: "/tmp"
|
||||
|
||||
deviceMounts:
|
||||
test1:
|
||||
enabled: true
|
||||
emptyDir: true
|
||||
devicePath: "/test1"
|
||||
test2:
|
||||
enabled: true
|
||||
emptyDir: false
|
||||
devicePath: "/test2"
|
||||
|
||||
|
||||
@@ -60,13 +60,11 @@ deviceMounts:
|
||||
test1:
|
||||
enabled: true
|
||||
emptyDir: true
|
||||
mountPath: "/test1"
|
||||
hostPath: "/tmp"
|
||||
devicePath: "/test1"
|
||||
test2:
|
||||
enabled: true
|
||||
emptyDir: false
|
||||
mountPath: "/test2"
|
||||
hostPath: "/tmp"
|
||||
devicePath: "/test2"
|
||||
|
||||
# these values and names are set specifically with the unittests in mind.
|
||||
customStorage:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
apiVersion: v2
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
name: common
|
||||
version: 3.0.3
|
||||
version: 3.0.4
|
||||
# upstream_version:
|
||||
appVersion: none
|
||||
description: Function library for TrueCharts
|
||||
|
||||
@@ -20,7 +20,7 @@ Volumes included by the controller.
|
||||
{{ $name = $dmm.name }}
|
||||
{{ end }}
|
||||
- name: devicemount-{{ $name }}
|
||||
mountPath: {{ $dmm.mountPath }}
|
||||
mountPath: {{ $dmm.devicePath }}
|
||||
{{ if $dmm.subPath }}
|
||||
subPath: {{ $dmm.subPath }}
|
||||
{{ end }}
|
||||
|
||||
@@ -57,7 +57,7 @@ Volumes included by the controller.
|
||||
emptyDir: {}
|
||||
{{- else -}}
|
||||
hostPath:
|
||||
path: {{ required "hostPath not set" $dm.hostPath }}
|
||||
path: {{ required "hostPath not set" $dm.devicePath }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
|
||||
@@ -296,24 +296,18 @@ PGID: 568
|
||||
UMASK: "002"
|
||||
fixMountPermissions: true
|
||||
|
||||
# appVolumeMounts:
|
||||
# deviceMounts:
|
||||
# config:
|
||||
# enabled: false
|
||||
# emptyDir: false
|
||||
# datasetName: "config"
|
||||
# mountPath: "/config"
|
||||
# subPath: some-subpath
|
||||
# hostPathEnabled: false
|
||||
# hostPath: ""
|
||||
# hostPath: "/config"
|
||||
# setPermissions: true
|
||||
|
||||
# additionalAppVolumeMounts:
|
||||
# customStorage:
|
||||
# - name: "data"
|
||||
# enabled: false
|
||||
# emptyDir: false
|
||||
# datasetName: "data"
|
||||
# mountPath: "/data"
|
||||
# subPath: some-subpath
|
||||
# hostPathEnabled: false
|
||||
# hostPath: ""
|
||||
# setPermissions: true
|
||||
|
||||
Reference in New Issue
Block a user