summaryrefslogtreecommitdiffstats
path: root/kubernetes/dmaap/components/dmaap-dr-node/templates/pv-spool.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-03-10 08:45:42 +0100
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-03-10 09:00:41 +0100
commitce3b461a1e9d10bf11dd39062234e6a795862a80 (patch)
tree74ddfa5a2fc18fb04e031894f37664429265a03c /kubernetes/dmaap/components/dmaap-dr-node/templates/pv-spool.yaml
parenta53b32f6eb8529777573db53e61d474363a13ef9 (diff)
[DMaaP DR] Enable persistence for Claims
Currently, persistence was not enabled, preventing creation of relevant PV/PVC for DMaaP DR. Setting this persistence as it should be the normal behavior Issue-ID: OOM-2332 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Ic36c0956d40333529d6325af38e33a9bc6838946
Diffstat (limited to 'kubernetes/dmaap/components/dmaap-dr-node/templates/pv-spool.yaml')
-rw-r--r--kubernetes/dmaap/components/dmaap-dr-node/templates/pv-spool.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/kubernetes/dmaap/components/dmaap-dr-node/templates/pv-spool.yaml b/kubernetes/dmaap/components/dmaap-dr-node/templates/pv-spool.yaml
index 280e034f3a..094e92a4ad 100644
--- a/kubernetes/dmaap/components/dmaap-dr-node/templates/pv-spool.yaml
+++ b/kubernetes/dmaap/components/dmaap-dr-node/templates/pv-spool.yaml
@@ -20,7 +20,7 @@
{{- $global := . }}
{{- if and $global.Values.persistence.enabled (not $global.Values.persistence.existingClaim) }}
-{{- if eq "True" (include "common.needPV" .) -}}
+{{- if (include "common.needPV" .) -}}
{{- range $i := until (int $global.Values.replicaCount)}}
kind: PersistentVolume
apiVersion: v1
@@ -30,7 +30,7 @@ metadata:
labels:
app: {{ include "common.fullname" $global }}
chart: "{{ $global.Chart.Name }}-{{ $global.Chart.Version | replace "+" "_" }}"
- release: "{{ include "common.release" . }}"
+ release: "{{ include "common.release" $global }}"
heritage: "{{ $global.Release.Service }}"
name: {{ include "common.fullname" $global }}-spool-data
spec:
@@ -41,7 +41,7 @@ spec:
persistentVolumeReclaimPolicy: {{ $global.Values.persistence.volumeReclaimPolicy }}
storageClassName: "{{ include "common.fullname" $global }}-data"
hostPath:
- path: {{ $global.Values.global.persistence.mountPath | default $global.Values.persistence.mountPath }}/{{ include "common.release" . }}/{{ $global.Values.persistence.spoolMountSubPath }}-{{$i}}
+ path: {{ $global.Values.global.persistence.mountPath | default $global.Values.persistence.mountPath }}/{{ include "common.release" $global }}/{{ $global.Values.persistence.spoolMountSubPath }}-{{$i}}
{{if ne $i (int $global.Values.replicaCount) }}
---
{{- end -}}