From 454ba9ca2e28c116e19dcfa77776d7a9ec2497fa Mon Sep 17 00:00:00 2001 From: aaronschweig Date: Tue, 14 Nov 2023 16:31:37 +0100 Subject: [PATCH 1/3] feat(openfga-chart): allow users to specify labels for the migration job Signed-off-by: aaronschweig --- charts/openfga/templates/job.yaml | 7 +++++++ charts/openfga/values.yaml | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/openfga/templates/job.yaml b/charts/openfga/templates/job.yaml index 0693ae2..9c17e42 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 d0c24a6..97e9afd 100644 --- a/charts/openfga/values.yaml +++ b/charts/openfga/values.yaml @@ -130,7 +130,7 @@ telemetry: prometheus.io/port: "{{ .Values.containerPorts.prometheus }}" datastore: - engine: memory + engine: postgres uri: uriSecret: maxCacheSize: @@ -254,3 +254,4 @@ sidecars: [] migrate: sidecars: [] annotations: {} + labels: {} \ No newline at end of file From b6cbc873fef11155b3ca67da03b46c1d619e99ce Mon Sep 17 00:00:00 2001 From: aaronschweig Date: Tue, 14 Nov 2023 16:32:39 +0100 Subject: [PATCH 2/3] fix: mistakenly commited a change to the default values Signed-off-by: aaronschweig --- charts/openfga/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/openfga/values.yaml b/charts/openfga/values.yaml index 97e9afd..71e46f6 100644 --- a/charts/openfga/values.yaml +++ b/charts/openfga/values.yaml @@ -130,7 +130,7 @@ telemetry: prometheus.io/port: "{{ .Values.containerPorts.prometheus }}" datastore: - engine: postgres + engine: memory uri: uriSecret: maxCacheSize: From b8f2378e341c5c9ab0e34f5be8bd27a34d9c1192 Mon Sep 17 00:00:00 2001 From: aaronschweig Date: Wed, 29 Nov 2023 17:08:16 +0100 Subject: [PATCH 3/3] chore: add new line at the end of values.yaml Signed-off-by: aaronschweig --- charts/openfga/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/openfga/values.yaml b/charts/openfga/values.yaml index 71e46f6..38f838e 100644 --- a/charts/openfga/values.yaml +++ b/charts/openfga/values.yaml @@ -254,4 +254,4 @@ sidecars: [] migrate: sidecars: [] annotations: {} - labels: {} \ No newline at end of file + labels: {}