diff --git a/charts/generic/Chart.yaml b/charts/generic/Chart.yaml index a42a78a..56af566 100644 --- a/charts/generic/Chart.yaml +++ b/charts/generic/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: generic description: A generic helm chart that handles a bunch of common application deploy cases type: application -version: 1.1.0 +version: 1.2.0 diff --git a/charts/generic/templates/deployment.yaml b/charts/generic/templates/deployment.yaml index 9c21725..d7b7cd2 100644 --- a/charts/generic/templates/deployment.yaml +++ b/charts/generic/templates/deployment.yaml @@ -77,6 +77,10 @@ spec: mountPath: {{ .mountPath }} readOnly: {{ .readOnly }} {{- end }} + {{- range $.Values.hostVolumes }} + - name: {{ .name }} + mountPath: {{ .mountPath }} + {{- end }} {{- range .Values.sidecars }} {{- $sidecarName := .name -}} {{- range .sharedEmptyDirs }} @@ -132,6 +136,10 @@ spec: mountPath: {{ .mountPath }} readOnly: {{ .readOnly }} {{- end }} + {{- range $.Values.hostVolumes }} + - name: {{ .name }} + mountPath: {{ .mountPath }} + {{- end }} {{- range .sharedEmptyDirs }} - name: {{ $sidecarName }}-{{ .name }} mountPath: {{ .mountPath }} @@ -149,6 +157,11 @@ spec: persistentVolumeClaim: claimName: {{ $fullName }}-{{ .name }} {{- end }} + {{- range .Values.hostVolumes }} + - name: {{ .name }} + hostPath: + path: {{ .hostPath }} + {{- end }} {{- range .Values.sidecars }} {{- $sidecarName := .name -}} {{- range .sharedEmptyDirs }} diff --git a/charts/generic/values.yaml b/charts/generic/values.yaml index 26f71fd..10a1b40 100644 --- a/charts/generic/values.yaml +++ b/charts/generic/values.yaml @@ -127,6 +127,11 @@ volumes: [] # storageClassName: longhorn # volumeMode: Filesystem|Block +hostVolumes: [] +# - name: config +# hostPath: /path/on/host/config +# mountPath: /config + resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little