Skip to content

Commit

Permalink
Revert "fix: resolvelocal should always return full ID if image is fo…
Browse files Browse the repository at this point in the history
…und (acorn-io#1682)"

This reverts commit e74aea6.

Signed-off-by: Craig Jellick <[email protected]>
  • Loading branch information
cjellick committed Jun 3, 2023
1 parent 5197ed7 commit 3dcdee3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/tags/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ func ResolveLocal(ctx context.Context, c kclient.Client, namespace, image string
}
} else if err != nil {
return "", false, err
} else if !localImage.Remote {
// The name will match the name we used to lookup, so trim the digest
return strings.TrimPrefix(localImage.Digest, "sha256:"), true, nil
}
return strings.TrimPrefix(localImage.Digest, "sha256:"), !localImage.Remote, nil
return image, false, nil
}

0 comments on commit 3dcdee3

Please sign in to comment.