You've already forked drone-charts
fix: helm and markdown linter
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -4,15 +4,20 @@ metadata:
|
||||
name: {{ include "drone.fullname" . }}
|
||||
type: Opaque
|
||||
stringData:
|
||||
|
||||
{{- if not (hasKey .Values "config") -}}
|
||||
{{- $_ := set .Values "config" dict -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if not (hasKey .Values.config "DRONE_SERVER_HOST") -}}
|
||||
{{- $_ := set .Values.config "DRONE_SERVER_HOST" .Values.ingress.hosts[0].host -}}
|
||||
{{- $_ := set .Values.config "DRONE_SERVER_HOST" (index .Values.ingress.hosts 0).host -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if not (hasKey .Values.config "DRONE_SERVER_PROTO") -}}
|
||||
{{- $_ := set .Values.config "DRONE_SERVER_PROTO" https -}}
|
||||
{{- $_ := set .Values.config "DRONE_SERVER_PROTO" "https" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{ /* SETUP CONFIG */ }}
|
||||
{{/* SETUP CONFIG */}}
|
||||
{{ range $key, $value := .Values.config }}
|
||||
{{ upper $key}}: {{ quote $value }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user