From e98e11b7b7183b5d18b5289d034b4175fcb992e6 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Wed, 29 Sep 2021 15:03:29 -0300 Subject: [PATCH] Ease search for SAPL volumes in vsphere --- charts/sapl/v0.2.0/templates/deployment.yaml | 2 +- charts/sapl/v0.2.0/templates/pvc-media.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/sapl/v0.2.0/templates/deployment.yaml b/charts/sapl/v0.2.0/templates/deployment.yaml index 822f29a..56cc123 100644 --- a/charts/sapl/v0.2.0/templates/deployment.yaml +++ b/charts/sapl/v0.2.0/templates/deployment.yaml @@ -100,7 +100,7 @@ spec: - name: media {{- if .Values.persistence.enabled }} persistentVolumeClaim: - claimName: media + claimName: {{ include "sapl.fullname" . }}-media {{- else }} emptyDir: {} {{- end }} diff --git a/charts/sapl/v0.2.0/templates/pvc-media.yaml b/charts/sapl/v0.2.0/templates/pvc-media.yaml index b8d8a70..acca018 100644 --- a/charts/sapl/v0.2.0/templates/pvc-media.yaml +++ b/charts/sapl/v0.2.0/templates/pvc-media.yaml @@ -2,7 +2,9 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: media + name: {{ include "sapl.fullname" . }}-media + labels: + {{- include "sapl.labels" . | nindent 4 }} spec: accessModes: - {{ .Values.persistence.accessMode }}