Fix valid semver comparison to allow dev images
This commit is contained in:
parent
02574040c2
commit
b8839a66b5
1 changed files with 1 additions and 1 deletions
|
@ -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 -}}
|
||||||
|
|
Loading…
Reference in a new issue