Skip to content

Commit

Permalink
Merge pull request #186 from devops-42/feature/add-templating-helper-…
Browse files Browse the repository at this point in the history
…for-deployment-configuration

feat: more flexibility for defining corsAllowedHeaders and oidc.issuer
  • Loading branch information
jeremy-albuixech authored Jan 31, 2025
2 parents be2c395 + f257e9c commit c39438a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions charts/openfga/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ spec:

{{- if .Values.http.corsAllowedOrigins }}
- name: OPENFGA_HTTP_CORS_ALLOWED_ORIGINS
value: "{{ join "," .Values.http.corsAllowedOrigins }}"
value: "{{ include "common.tplvalues.render" ( dict "value" (join "," .Values.http.corsAllowedOrigins) "context" $ ) }}"

{{- end }}

{{- if .Values.http.corsAllowedHeaders }}
Expand All @@ -254,7 +255,7 @@ spec:

{{- if .Values.authn.oidc.issuer }}
- name: OPENFGA_AUTHN_OIDC_ISSUER
value: "{{ .Values.authn.oidc.issuer }}"
value: "{{ include "common.tplvalues.render" ( dict "value" .Values.authn.oidc.issuer "context" $ ) }}"
{{- end }}

- name: OPENFGA_PLAYGROUND_ENABLED
Expand Down

0 comments on commit c39438a

Please sign in to comment.