fix: helm and markdown linter
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-07-21 22:47:15 +02:00
parent dbe02c8385
commit 96f1bc6655
3 changed files with 161 additions and 3 deletions

View File

@ -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 }}