Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 5e3e633

Browse files
authored
Fix image interpolation for IDs that already contain the digest (#1816)
Signed-off-by: Grant Linville <[email protected]>
1 parent ca4e225 commit 5e3e633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/secrets/interpolation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func (i *Interpolator) resolveApp(keyName string) (string, bool, error) {
194194
case "namespace":
195195
return i.app.Status.Namespace, true, nil
196196
case "image":
197-
if tags.IsLocalReference(i.app.Status.AppImage.ID) {
197+
if tags.IsLocalReference(i.app.Status.AppImage.ID) || strings.Contains(i.app.Status.AppImage.ID, "sha256:") {
198198
return i.app.Status.AppImage.ID, true, nil
199199
} else if i.app.Status.AppImage.ID != "" && i.app.Status.AppImage.Digest != "" {
200200
tag, err := name.NewTag(i.app.Status.AppImage.ID)

0 commit comments

Comments
 (0)