From b8839a66b5ab371799d6a1c304d267894999ab68 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Mon, 16 Mar 2020 16:31:50 -0300 Subject: [PATCH] Fix valid semver comparison to allow dev images --- charts/ingress-nginx/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/ingress-nginx/templates/_helpers.tpl b/charts/ingress-nginx/templates/_helpers.tpl index bb3ac40a3..3d9621aba 100644 --- a/charts/ingress-nginx/templates/_helpers.tpl +++ b/charts/ingress-nginx/templates/_helpers.tpl @@ -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 */}} {{- 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" -}} {{- end -}} {{- end -}}