diff --git a/charts/templates/_helpers.tpl b/charts/templates/_helpers.tpl index 76d852515ed2..7b473941e5ca 100644 --- a/charts/templates/_helpers.tpl +++ b/charts/templates/_helpers.tpl @@ -37,7 +37,7 @@ Number of master nodes RollingUpdate {{- else -}} {{- $imageVersion := (index $ds.spec.template.spec.containers 0).image | splitList ":" | last | trimPrefix "v" -}} - {{- $versionRegex := "^(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)" -}} + {{- $versionRegex := `^(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)` -}} {{- if regexMatch $versionRegex $imageVersion -}} {{- if regexFind $versionRegex $imageVersion | semverCompare ">= 1.12.0" -}} RollingUpdate