Fix valid semver comparison to allow dev images

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-03-16 16:31:50 -03:00
parent 02574040c2
commit b8839a66b5

View file

@ -151,7 +151,7 @@ Return the appropriate apiVersion for podSecurityPolicy.
Check the ingress controller version tag is at most three versions behind the last release Check the ingress controller version tag is at most three versions behind the last release
*/}} */}}
{{- define "isControllerTagValid" -}} {{- define "isControllerTagValid" -}}
{{- if not (semverCompare ">=0.27.0" .Values.controller.image.tag) -}} {{- if not (semverCompare ">=0.27.0-0" .Values.controller.image.tag) -}}
{{- fail "Controller container image tag should be 0.27.0 or higher" -}} {{- fail "Controller container image tag should be 0.27.0 or higher" -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}