Skip to content

Commit

Permalink
update deployment.tpl and service account
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGoyette committed Oct 30, 2024
1 parent 42a8486 commit a42e3c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/operator-wandb/charts/app/templates/_deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ spec:
- name: GORILLA_INTERNAL_JWT_ISSUERS
value: '["https://kubernetes.default.svc.cluster.local"]'
- name: GORILLA_INTERNAL_JWT_SUBJECTS
value: '["system:serviceaccount:default:{{ .Values.global.weave-trace.serviceAccountName }}"]'
value: '["system:serviceaccount:default:{{ index .Values.global \"weave-trace\" \"serviceAccountName\" }}"]'
{{- end }}
{{- include "app.extraEnv" (dict "global" $.Values.global "local" .Values) | nindent 12 }}
{{- include "wandb.extraEnvFrom" (dict "root" $ "local" .) | nindent 12 }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{{- if .Values.serviceAccount.create -}}
{{- if (empty .Values.global.weave-trace.serviceAccountName) -}}
{{- fail "Values.global.weave-trace.serviceAccountName cannot be empty if serviceAccount.create is true" -}}
{{- end -}}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down

0 comments on commit a42e3c7

Please sign in to comment.