You've already forked helm-gitea
Use Secrets for passwords and tokens
Signed-off-by: Thomas Matysik <thomas@matysik.co.nz>
This commit is contained in:

committed by
Charlie Drage

parent
7340a6278a
commit
5f3dd8a292
@ -29,3 +29,35 @@ Return the appropriate apiVersion for ingress.
|
||||
{{- print "networking.k8s.io/v1beta1" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "gitea-secret-name" -}}
|
||||
{{- if .Values.config.secretName -}}
|
||||
{{ .Values.config.secretName }}
|
||||
{{- else -}}
|
||||
{{ template "fullname" . }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "db-secret-name" -}}
|
||||
{{- if .Values.mariadb.enabled -}}
|
||||
{{- if .Values.mariadb.existingSecret -}}
|
||||
{{ .Values.mariadb.existingSecret }}
|
||||
{{- else -}}
|
||||
{{ template "mariadb.fullname" . }}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- if .Values.externalDB.secretName -}}
|
||||
{{ .Values.externalDB.secretName }}
|
||||
{{- else -}}
|
||||
{{ printf "%s-externalDB" (include "fullname" .) }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "db-secret-key" -}}
|
||||
{{- if .Values.mariadb.enabled -}}
|
||||
{{- print "mariadb-password" -}}
|
||||
{{- else -}}
|
||||
{{ .Values.externalDB.passwordKey }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
Reference in New Issue
Block a user