mirror of
https://github.com/nikdoof/helm-charts.git
synced 2025-12-25 15:49:28 +00:00
[common] Add common chart from KaH
This commit is contained in:
17
charts/common/templates/_secret.tpl
Normal file
17
charts/common/templates/_secret.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
{{/*
|
||||
The Secret object to be created.
|
||||
*/}}
|
||||
{{- define "common.secret" }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ include "common.names.fullname" . }}
|
||||
labels: {{- include "common.labels" $ | nindent 4 }}
|
||||
annotations: {{- include "common.annotations" $ | nindent 4 }}
|
||||
type: Opaque
|
||||
{{- with .Values.secret }}
|
||||
stringData:
|
||||
{{- toYaml . | nindent 2 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user