2024-02-23 21:49:14 +00:00
|
|
|
{{/* Define the secrets */}}
|
|
|
|
{{- define "semaphore.secrets" -}}
|
|
|
|
{{- $secretName := (printf "%s-semaphore-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }}
|
|
|
|
|
|
|
|
{{- $accessKey := randAlphaNum 32 -}}
|
|
|
|
|
|
|
|
{{- with lookup "v1" "Secret" .Release.Namespace $secretName -}}
|
|
|
|
{{- $accessKey = index .data "SEMAPHORE_ACCESS_KEY_ENCRYPTION" | b64dec -}}
|
|
|
|
{{- end }}
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
SEMAPHORE_ACCESS_KEY_ENCRYPTION: {{ $accessKey }}
|
2024-02-24 00:08:31 +00:00
|
|
|
{{- end -}}
|