Use chart minor version for dockertag (#1762)

* Revert "Set tap.docker.tag to minor version of release (#1761)"

This reverts commit 6d2b0676f6.

* Fix condition for default image tag
This commit is contained in:
Volodymyr Stoiko
2025-06-05 00:24:23 +03:00
committed by GitHub
parent 1d8fa774d3
commit 8c9473626e
2 changed files with 3 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ Create docker tag default version
*/}}
{{- define "kubeshark.defaultVersion" -}}
{{- $defaultVersion := (printf "v%s" .Chart.Version) -}}
{{- if not .Values.tap.docker.tagLocked }}
{{- if .Values.tap.docker.tagLocked }}
{{- $defaultVersion = regexReplaceAll "^([^.]+\\.[^.]+).*" $defaultVersion "$1" -}}
{{- end }}
{{- $defaultVersion }}