blob: cdcbda22a3aa48e0cffd759f12d872465e6a70ed [file] [log] [blame]
Oleksandr Kozachenkob0093492023-09-06 21:43:47 +02001{{- /*
2Copyright VMware, Inc.
3SPDX-License-Identifier: APACHE-2.0
4*/}}
5
6{{- if not .Values.auth.existingSecret }}
7apiVersion: v1
8kind: Secret
9metadata:
10 name: {{ printf "%s" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
11 namespace: {{ include "common.names.namespace" . | quote }}
Mohammed Naser65cda132024-05-02 14:34:08 -040012 labels: {{- include "common.labels.standard" (dict "customLabels" .Values.commonLabels "context" $) | nindent 4 }}
Oleksandr Kozachenkob0093492023-09-06 21:43:47 +020013 app.kubernetes.io/component: keycloak
Mohammed Naser65cda132024-05-02 14:34:08 -040014 {{- if or .Values.auth.annotations .Values.commonAnnotations }}
15 annotations: {{- include "common.tplvalues.merge" (dict "values" (list .Values.auth.annotations .Values.commonAnnotations) "context" $) | nindent 4 }}
Oleksandr Kozachenkob0093492023-09-06 21:43:47 +020016 {{- end }}
17type: Opaque
18data:
19 admin-password: {{ include "common.secrets.passwords.manage" (dict "secret" (printf "%s" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-") "key" "admin-password" "length" 10 "providedValues" (list "auth.adminPassword") "context" $) }}
20{{- end }}