From 9ee078c8754e7bcaf7c903513e2971648e373e06 Mon Sep 17 00:00:00 2001 From: Aaron Schweig <42006873+aaronschweig@users.noreply.github.com> Date: Wed, 20 Dec 2023 15:39:27 +0100 Subject: [PATCH] feat(openfga): allow customization of labels for migration job (#87) * feat(openfga-chart): allow users to specify labels for the migration job Signed-off-by: aaronschweig * fix: mistakenly commited a change to the default values Signed-off-by: aaronschweig * chore: add new line at the end of values.yaml Signed-off-by: aaronschweig --------- Signed-off-by: aaronschweig --- charts/openfga/templates/job.yaml | 7 +++++++ charts/openfga/values.yaml | 1 + 2 files changed, 8 insertions(+) diff --git a/charts/openfga/templates/job.yaml b/charts/openfga/templates/job.yaml index 6c3d1ad..aaf7d37 100644 --- a/charts/openfga/templates/job.yaml +++ b/charts/openfga/templates/job.yaml @@ -5,6 +5,9 @@ metadata: name: {{ include "openfga.fullname" . }}-migrate labels: {{- include "openfga.labels" . | nindent 4 }} + {{- with .Values.migrate.labels }} + {{- toYaml . | nindent 4}} + {{- end}} {{- with .Values.migrate.annotations }} annotations: {{- toYaml . | nindent 4 }} @@ -16,6 +19,10 @@ spec: annotations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.migrate.labels }} + labels: + {{- toYaml . | nindent 8 }} + {{- end }} spec: serviceAccountName: {{ include "openfga.serviceAccountName" . }} containers: diff --git a/charts/openfga/values.yaml b/charts/openfga/values.yaml index f623388..82e7b5f 100644 --- a/charts/openfga/values.yaml +++ b/charts/openfga/values.yaml @@ -258,3 +258,4 @@ sidecars: [] migrate: sidecars: [] annotations: {} + labels: {}