Unverified Commit b32dd1b9 authored by Vytautas Bertasius's avatar Vytautas Bertasius
Browse files

feat: improve post deployment notes

parent 92c4e938
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
{{- if and .Values.ingress.enabled .Values.service.enabled -}}
Application should be accessible at

    {{ .Values.service.url }}
{{ include "appurls" . | indent 4 }}
{{- else -}}
Application was deployed reusing the service at

    {{ .Values.service.url }}
{{ include "appurls" . | indent 4 }}

It will share a load balancer with the previous release (or be unavailable if
no service or ingress was previously deployed).
+9 −0
Original line number Diff line number Diff line
@@ -90,3 +90,12 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- $merged := deepCopy $custom | mergeOverwrite $defaults -}}
{{- $merged | toYaml -}}
{{- end -}}

{{- define "appurls" -}}
{{ printf "%s%s" .Values.service.url .Values.ingress.path }}
{{- if .Values.service.additionalHosts }}
{{- range $host := .Values.service.additionalHosts }}
{{ if $.Values.ingress.tls.enabled }}https://{{ else }}http://{{ end }}{{ printf "%s%s" $host $.Values.ingress.path }}
{{- end -}}
{{- end -}}
{{- end -}}