项目重构

This commit is contained in:
zeaslity
2024-11-28 16:42:36 +08:00
parent a31ae1055a
commit c9f69d595e
822 changed files with 4 additions and 3091 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 }}