From d262a9f724a59cf939990ff078264e757a732fa0 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Tue, 3 Jan 2023 11:55:20 -0800 Subject: [PATCH] Simplify Redis persistent storage name It looks like the StatefulSet always prepends its own name to the storage, so avoid repeating that name and make the PVC name shorter. --- charts/redis/Chart.yaml | 2 +- charts/redis/templates/statefulset.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/redis/Chart.yaml b/charts/redis/Chart.yaml index 088b24fe..1f1ea256 100644 --- a/charts/redis/Chart.yaml +++ b/charts/redis/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: redis -version: 0.1.1 +version: 0.1.2 description: Simple single-server Redis deployment with configurable storage sources: - https://github.com/lsst-sqre/charts/tree/master/charts/redis diff --git a/charts/redis/templates/statefulset.yaml b/charts/redis/templates/statefulset.yaml index ff128ebf..f84f5125 100644 --- a/charts/redis/templates/statefulset.yaml +++ b/charts/redis/templates/statefulset.yaml @@ -93,7 +93,7 @@ spec: {{- if (and .Values.persistence.enabled (not .Values.persistence.volumeClaimName)) }} volumeClaimTemplates: - metadata: - name: {{ template "redis.fullname" . }} + name: "storage" spec: accessModes: - {{ .Values.persistence.accessMode | quote }}