Fix podinfo helm tests

This commit is contained in:
stefanprodan
2019-02-10 17:38:33 +02:00
parent a74ad52c72
commit 71057946e6
2 changed files with 11 additions and 5 deletions
+10
View File
@@ -31,3 +31,13 @@ Create chart name and version as used by the chart label.
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create chart name suffix.
*/}}
{{- define "podinfo.suffix" -}}
{{- if .Values.canary.enabled -}}
{{- "-primary" -}}
{{- else -}}
{{- "" -}}
{{- end -}}
{{- end -}}
@@ -1,8 +1,4 @@
{{- $suffix := "" -}}
{{- if .Values.canary.enabled -}}
{{- $suffix = "-primary" -}}
{{- end -}}
{{- $url := printf "%s%s:%v" (include "podinfo.fullname" .) $suffix .Values.service.port -}}
{{- $url := printf "%s%s.%s:%v" (include "podinfo.fullname" .) (include "podinfo.suffix" .) .Release.Namespace .Values.service.port -}}
apiVersion: v1
kind: ConfigMap
metadata: