Created test chart
Some checks failed
Upload Helm Chart / Explore-Gitea-Actions (push) Failing after 2s
Some checks failed
Upload Helm Chart / Explore-Gitea-Actions (push) Failing after 2s
This commit is contained in:
@@ -1,20 +1,10 @@
|
||||
{{- if .Values.secrets }}
|
||||
{{- range $sec := .Values.secrets }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
{{- if or (eq $sec.type "env") (eq $sec.type "file") }}
|
||||
type: Opaque
|
||||
{{- else if eq $sec.type "docker" }}
|
||||
type: kubernetes.io/dockerconfigjson
|
||||
{{- end }}
|
||||
metadata:
|
||||
name: {{ include "..fullname" $ }}-{{ $sec.name }}
|
||||
name: {{ include "..fullname" . }}
|
||||
labels:
|
||||
{{- include "..labels" $ | nindent 4 }}
|
||||
data:
|
||||
{{- range $item := $sec.values }}
|
||||
{{ $item.name }}: {{ $item.value | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- include "..labels" . | nindent 4 }}
|
||||
stringData:
|
||||
{{- toYaml .Values.secretContents | nindent 2 }}
|
||||
|
||||
Reference in New Issue
Block a user