From 06ffde26094b9cbd4e3264493b43b97308a00938 Mon Sep 17 00:00:00 2001 From: Sarah Gibson Date: Fri, 13 Sep 2024 14:26:06 +0100 Subject: [PATCH 1/2] Update deployment labels --- gcpFilestoreBackups/templates/deployment.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcpFilestoreBackups/templates/deployment.yaml b/gcpFilestoreBackups/templates/deployment.yaml index 1df52d0..532e468 100644 --- a/gcpFilestoreBackups/templates/deployment.yaml +++ b/gcpFilestoreBackups/templates/deployment.yaml @@ -3,6 +3,7 @@ kind: Deployment metadata: name: {{ include "gcpFilestoreBackups.fullname" . | lower }} labels: + app: gcp-filestore-backups {{- include "gcpFilestoreBackups.labels" . | nindent 4 }} spec: replicas: 1 @@ -14,7 +15,7 @@ spec: {{- include "gcpFilestoreBackups.selectorLabels" . | nindent 6 }} template: metadata: - matchLabels: + labels: app: gcp-filestore-backups {{- include "gcpFilestoreBackups.labels" . | nindent 8 }} {{- with .Values.podLabels }} From c86193b267ded4e7d26d123b9d9bf8f32ca055cb Mon Sep 17 00:00:00 2001 From: Sarah Gibson Date: Fri, 13 Sep 2024 14:26:24 +0100 Subject: [PATCH 2/2] ensure correct service account is mounted to pod --- gcpFilestoreBackups/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcpFilestoreBackups/templates/deployment.yaml b/gcpFilestoreBackups/templates/deployment.yaml index 532e468..ccc43c8 100644 --- a/gcpFilestoreBackups/templates/deployment.yaml +++ b/gcpFilestoreBackups/templates/deployment.yaml @@ -22,7 +22,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: - serviceAccountName: {{ include "gcpFilestoreBackups.fullname" . }} + serviceAccountName: {{ include "gcpFilestoreBackups.serviceAccountName" . }} automountServiceAccountToken: False containers: - name: {{ .Chart.Name }}