Skip to content

Commit

Permalink
fix: specify secret for datastore uri in migration (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Arvela authored May 30, 2023
1 parent 58b19a2 commit e2c31cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/openfga/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: openfga
description: A Kubernetes Helm chart for the OpenFGA project.

type: application
version: 0.1.13
version: 0.1.14
appVersion: "v1.0.1"

home: "https://openfga.github.io/helm-charts/charts/openfga"
Expand Down
6 changes: 6 additions & 0 deletions charts/openfga/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ spec:
{{- if .Values.datastore.uri }}
- name: OPENFGA_DATASTORE_URI
value: "{{ .Values.datastore.uri }}"
{{- else if .Values.datastore.uriSecret }}
- name: OPENFGA_DATASTORE_URI
valueFrom:
secretKeyRef:
name: "{{ .Values.datastore.uriSecret }}"
key: "uri"
{{- end }}
restartPolicy: Never
backoffLimit: 1
Expand Down

0 comments on commit e2c31cc

Please sign in to comment.