Skip to content

Commit

Permalink
feat: pass TK_AI_TOKEN to the frontend (#232)
Browse files Browse the repository at this point in the history
* feat: pass TK_AI_TOKEN to the frontend

* fix: rem leftover

* fix: added note
  • Loading branch information
exu authored Nov 8, 2024
1 parent 9fee258 commit b3ae7ed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 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,15 @@ 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"
{{- end }}
{{- end }}
{{- if .Values.sentry.enabled }}
- name: REACT_APP_SENTRY_KEY
{{- if .Values.sentry.secretRef }}
Expand Down
7 changes: 7 additions & 0 deletions charts/testkube-cloud-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ global:
containerSecurityContext: {}
# -- Global security Context for all pods
podSecurityContext: {}
# -- Testkube AI service settings (ALPHA - for Kubecon purpose only for now)
ai:
# -- Enable Testkube AI keys for frontend
enabled: false
# -- Secret name
secretRef: testkube-ai

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

0 comments on commit b3ae7ed

Please sign in to comment.