Skip to content

Commit

Permalink
feat(openfga): allow customization of labels for migration job (#87)
Browse files Browse the repository at this point in the history
* feat(openfga-chart): allow users to specify labels for the migration job

Signed-off-by: aaronschweig <[email protected]>

* fix: mistakenly commited a change to the default values

Signed-off-by: aaronschweig <[email protected]>

* chore: add new line at the end of values.yaml

Signed-off-by: aaronschweig <[email protected]>

---------

Signed-off-by: aaronschweig <[email protected]>
  • Loading branch information
aaronschweig authored Dec 20, 2023
1 parent 0d08124 commit 9ee078c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/openfga/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down
1 change: 1 addition & 0 deletions charts/openfga/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,4 @@ sidecars: []
migrate:
sidecars: []
annotations: {}
labels: {}

0 comments on commit 9ee078c

Please sign in to comment.