2024-02-23 16:49:14 -05: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-23 19:08:31 -05:00
|
|
|
{{- end -}}
|