Don't create volume mounts for unmountable PVC's (#334)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.16.0-0"
|
||||||
name: common
|
name: common
|
||||||
version: 2.2.0
|
version: 2.2.1
|
||||||
# upstream_version:
|
# upstream_version:
|
||||||
appVersion: none
|
appVersion: none
|
||||||
description: Function library for TrueCharts
|
description: Function library for TrueCharts
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ The main container included in the controller.
|
|||||||
{{- include "common.controller.ports" . | trim | nindent 2 }}
|
{{- include "common.controller.ports" . | trim | nindent 2 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- range $index, $PVC := .Values.persistence }}
|
{{- range $index, $PVC := .Values.persistence }}
|
||||||
{{- if $PVC.enabled }}
|
{{- if and ( $PVC.enabled ) ( $PVC.mountPath ) }}
|
||||||
- mountPath: {{ $PVC.mountPath }}
|
- mountPath: {{ $PVC.mountPath }}
|
||||||
name: {{ $index }}
|
name: {{ $index }}
|
||||||
{{- if $PVC.subPath }}
|
{{- if $PVC.subPath }}
|
||||||
|
|||||||
Reference in New Issue
Block a user