diff --git a/charts/akeyless-api-gateway/templates/_helpers.tpl b/charts/akeyless-api-gateway/templates/_helpers.tpl index be9728d9..8edfc238 100644 --- a/charts/akeyless-api-gateway/templates/_helpers.tpl +++ b/charts/akeyless-api-gateway/templates/_helpers.tpl @@ -391,7 +391,7 @@ Check metrics configuration Secret {{- end }} {{- define "gw_health_path" -}} -{{- if eq "latest" (include "version" .) -}} +{{- if not (regexMatch "[0-9]+(\\.[0-9]+){2}" (include "version" .)) -}} /health {{- else -}} {{- $parts := split "." (include "version" .) -}}