Skip to content

Commit

Permalink
feat: pass TK_AI_TOKEN to the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
exu committed Nov 8, 2024
1 parent 9fee258 commit 14099f0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions charts/testkube-cloud-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ spec:
- name: REACT_APP_AUTH_STRATEGY
value: {{ .Values.ui.authStrategy }}
{{- end }}
{{- if .Values.global.ai.enabled }}
- name: TK_AI_KEY
{{- if .Values.global.ai.secretRef }}
valueFrom:
secretKeyRef:
name: {{ .Values.global.ai.secretRef }}
key: "TK_AI_KEY"
{{- else }}
value: "{{ .Values.sentry.url }}"
{{- end }}
{{- end }}
{{- if .Values.sentry.enabled }}
- name: REACT_APP_SENTRY_KEY
{{- if .Values.sentry.secretRef }}
Expand Down
4 changes: 4 additions & 0 deletions charts/testkube-cloud-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ global:
containerSecurityContext: {}
# -- Global security Context for all pods
podSecurityContext: {}
ai:
enabled: false
secretRef: testkube-ai

replicaCount: 1
sentry:
# -- Toggle whether to enable Sentry.io error reporting
Expand Down

0 comments on commit 14099f0

Please sign in to comment.