You've already forked drone-charts
Initial Commit
This commit is contained in:
18
templates/secrets.yaml
Normal file
18
templates/secrets.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ include "drone.fullname" . }}
|
||||
type: Opaque
|
||||
stringData:
|
||||
{{- if not (hasKey .Values.config "DRONE_SERVER_HOST") -}}
|
||||
{{- $_ := set .Values.config "DRONE_SERVER_HOST" .Values.ingress.hosts[0].host -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if not (hasKey .Values.config "DRONE_SERVER_PROTO") -}}
|
||||
{{- $_ := set .Values.config "DRONE_SERVER_PROTO" https -}}
|
||||
{{- end -}}
|
||||
|
||||
{{ /* SETUP CONFIG */ }}
|
||||
{{ range $key, $value := .Values.config }}
|
||||
{{ upper $key}}: {{ quote $value }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user