From 8a80b9b9054b116dee0041e85ba181289a1b0300 Mon Sep 17 00:00:00 2001 From: Sinelnikov Michail Date: Wed, 25 Feb 2026 12:49:02 +0300 Subject: [PATCH 1/3] from Runtime to Package Signed-off-by: Sinelnikov Michail --- charts/helm_lib/templates/_application_image.tpl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/helm_lib/templates/_application_image.tpl b/charts/helm_lib/templates/_application_image.tpl index be561e4..ea48e61 100644 --- a/charts/helm_lib/templates/_application_image.tpl +++ b/charts/helm_lib/templates/_application_image.tpl @@ -2,19 +2,20 @@ {{- /* returns image name in format "registry/package@digest" */ -}} {{- define "helm_lib_application_image" }} {{- $context := index . 0 }} + {{- $pkg := $context.Package | default $context.Values.Package }} {{- $image := index . 1 | trimAll "\"" }} - {{- $imageDigest := index $context.Runtime.Package.Digests $image }} + {{- $imageDigest := index $pkg.Digests $image }} {{- if not $imageDigest }} {{- fail (printf "Image %s has no digest" $image) }} {{- end }} - {{- $registryBase := $context.Runtime.Package.Registry.repository }} + {{- $registryBase := $pkg.Registry.repository }} {{- if not $registryBase }} {{- fail "Registry base is not set" }} {{- end }} - {{- $packageName := $context.Runtime.Package.Name }} + {{- $packageName := $pkg.Name }} {{- if not $packageName }} {{- fail "Package name is not set" }} {{- end }} From 6dd07fa048f46e014ee31814275883f2dae8a264 Mon Sep 17 00:00:00 2001 From: Sinelnikov Michail Date: Wed, 25 Feb 2026 13:49:49 +0300 Subject: [PATCH 2/3] fix Signed-off-by: Sinelnikov Michail --- charts/helm_lib/templates/_application_image.tpl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/charts/helm_lib/templates/_application_image.tpl b/charts/helm_lib/templates/_application_image.tpl index ea48e61..86946e6 100644 --- a/charts/helm_lib/templates/_application_image.tpl +++ b/charts/helm_lib/templates/_application_image.tpl @@ -2,20 +2,19 @@ {{- /* returns image name in format "registry/package@digest" */ -}} {{- define "helm_lib_application_image" }} {{- $context := index . 0 }} - {{- $pkg := $context.Package | default $context.Values.Package }} {{- $image := index . 1 | trimAll "\"" }} - {{- $imageDigest := index $pkg.Digests $image }} + {{- $imageDigest := index $context.Package.Digests $image }} {{- if not $imageDigest }} {{- fail (printf "Image %s has no digest" $image) }} {{- end }} - {{- $registryBase := $pkg.Registry.repository }} + {{- $registryBase := $context.Package.Registry.repository }} {{- if not $registryBase }} {{- fail "Registry base is not set" }} {{- end }} - {{- $packageName := $pkg.Name }} + {{- $packageName := $context.Package.Name }} {{- if not $packageName }} {{- fail "Package name is not set" }} {{- end }} From b08bf653856a3fea4bb9923d44bfa0cc9578a828 Mon Sep 17 00:00:00 2001 From: Sinelnikov Michail Date: Fri, 27 Feb 2026 18:36:59 +0300 Subject: [PATCH 3/3] fix and bump Signed-off-by: Sinelnikov Michail --- charts/helm_lib/Chart.yaml | 2 +- charts/helm_lib/templates/_application_image.tpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/helm_lib/Chart.yaml b/charts/helm_lib/Chart.yaml index 850caf2..9d1d531 100644 --- a/charts/helm_lib/Chart.yaml +++ b/charts/helm_lib/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 type: library name: deckhouse_lib_helm -version: 1.70.1 +version: 1.70.2 description: "Helm utils template definitions for Deckhouse modules." diff --git a/charts/helm_lib/templates/_application_image.tpl b/charts/helm_lib/templates/_application_image.tpl index 86946e6..c1aa9ef 100644 --- a/charts/helm_lib/templates/_application_image.tpl +++ b/charts/helm_lib/templates/_application_image.tpl @@ -4,17 +4,17 @@ {{- $context := index . 0 }} {{- $image := index . 1 | trimAll "\"" }} - {{- $imageDigest := index $context.Package.Digests $image }} + {{- $imageDigest := index $context.Application.Package.Digests $image }} {{- if not $imageDigest }} {{- fail (printf "Image %s has no digest" $image) }} {{- end }} - {{- $registryBase := $context.Package.Registry.repository }} + {{- $registryBase := $context.Application.Package.Registry.repository }} {{- if not $registryBase }} {{- fail "Registry base is not set" }} {{- end }} - {{- $packageName := $context.Package.Name }} + {{- $packageName := $context.Application.Package.Name }} {{- if not $packageName }} {{- fail "Package name is not set" }} {{- end }}