openclaw/charts/clawdbot/templates/secret.yaml
sirily11 6635d70170
feat: add helm chart support (#1)
feat: enhance Helm chart workflows and update image references
2026-01-28 09:35:54 +08:00

24 lines
697 B
YAML

{{- if .Values.secrets.create -}}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "clawdbot.fullname" . }}
labels:
{{- include "clawdbot.labels" . | nindent 4 }}
type: Opaque
stringData:
gatewayToken: {{ .Values.secrets.data.gatewayToken | default (randAlphaNum 32) | quote }}
{{- with .Values.secrets.data.anthropicApiKey }}
anthropicApiKey: {{ . | quote }}
{{- end }}
{{- with .Values.secrets.data.openaiApiKey }}
openaiApiKey: {{ . | quote }}
{{- end }}
{{- with .Values.secrets.data.discordBotToken }}
discordBotToken: {{ . | quote }}
{{- end }}
{{- with .Values.secrets.data.telegramBotToken }}
telegramBotToken: {{ . | quote }}
{{- end }}
{{- end }}