Create umbraco
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 3s
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 3s
This commit is contained in:
21
Chart/templates/secret.yaml
Normal file
21
Chart/templates/secret.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- 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 }}
|
||||
labels:
|
||||
{{- include "..labels" $ | nindent 4 }}
|
||||
data:
|
||||
{{- range $item := $sec.values }}
|
||||
- name: {{ $item.name }}
|
||||
value: {{ $item.value | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user