first-commit

This commit is contained in:
zeaslity
2023-05-15 16:49:09 +08:00
commit 06cba6ca3c
816 changed files with 157018 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
apiVersion: v1
kind: Secret
metadata:
name: "bootstrap-secret"
namespace: {{ .Release.Namespace }}
type: Opaque
data:
{{- $existingSecret := lookup "v1" "Secret" .Release.Namespace "bootstrap-secret" }}
{{- if and $existingSecret $existingSecret.data }}
{{- if $existingSecret.data.bootstrapPassword }}
bootstrapPassword: {{ $existingSecret.data.bootstrapPassword }}
{{- else }}
bootstrapPassword: {{ .Values.bootstrapPassword | default "" | b64enc | quote }}
{{- end }}
{{- else }}
bootstrapPassword: {{ .Values.bootstrapPassword | default "" | b64enc | quote }}
{{- end }}