From 27aa2ed9904d82c7fc57d3705f778593f1197f2c Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Mon, 28 Jun 2021 17:13:53 -0300 Subject: [PATCH] Make data volume easier to identify among others --- charts/portalmodelo/v0.5.0/templates/plone-deployment.yaml | 2 +- charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml | 2 +- charts/portalmodelo/v0.5.0/templates/pvc.yaml | 4 +++- charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml | 2 +- .../portalmodelo/v0.5.0/templates/zeoserver-deployment.yaml | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/charts/portalmodelo/v0.5.0/templates/plone-deployment.yaml b/charts/portalmodelo/v0.5.0/templates/plone-deployment.yaml index a77470b..0e7d0d6 100644 --- a/charts/portalmodelo/v0.5.0/templates/plone-deployment.yaml +++ b/charts/portalmodelo/v0.5.0/templates/plone-deployment.yaml @@ -108,7 +108,7 @@ spec: volumes: - name: data persistentVolumeClaim: - claimName: data + claimName: {{ include "portalmodelo.fullname" . }}-data {{- end }} {{- with .Values.nodeSelector }} nodeSelector: diff --git a/charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml b/charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml index b28720f..26c970d 100644 --- a/charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml +++ b/charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml @@ -81,7 +81,7 @@ spec: volumes: - name: data persistentVolumeClaim: - claimName: data + claimName: {{ include "portalmodelo.fullname" . }}-data {{- end }} {{- end }} {{- end }} diff --git a/charts/portalmodelo/v0.5.0/templates/pvc.yaml b/charts/portalmodelo/v0.5.0/templates/pvc.yaml index b1e7306..7213aa0 100644 --- a/charts/portalmodelo/v0.5.0/templates/pvc.yaml +++ b/charts/portalmodelo/v0.5.0/templates/pvc.yaml @@ -2,7 +2,9 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: data + name: {{ include "portalmodelo.fullname" . }}-data + labels: + {{- include "portalmodelo.labels" . | nindent 4 } spec: accessModes: - {{ .Values.persistence.accessMode }} diff --git a/charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml b/charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml index 36dfa5a..66c17aa 100644 --- a/charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml +++ b/charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml @@ -47,7 +47,7 @@ spec: volumes: - name: data persistentVolumeClaim: - claimName: data + claimName: {{ include "portalmodelo.fullname" . }}-data {{- end }} {{- with .Values.nodeSelector }} nodeSelector: diff --git a/charts/portalmodelo/v0.5.0/templates/zeoserver-deployment.yaml b/charts/portalmodelo/v0.5.0/templates/zeoserver-deployment.yaml index a208eeb..2ce452b 100644 --- a/charts/portalmodelo/v0.5.0/templates/zeoserver-deployment.yaml +++ b/charts/portalmodelo/v0.5.0/templates/zeoserver-deployment.yaml @@ -102,7 +102,7 @@ spec: - name: data {{- if .Values.persistence.enabled }} persistentVolumeClaim: - claimName: data + claimName: {{ include "portalmodelo.fullname" . }}-data {{- else }} emptyDir: {} {{- end }}