using parsers in applyDefaultImageTag

This commit is contained in:
kannon92
2023-03-02 14:24:45 +00:00
parent 3a65b989e3
commit 0819d34204
6 changed files with 79 additions and 52 deletions

View File

@@ -31,7 +31,7 @@ import (
func ParseImageName(image string) (string, string, string, error) {
named, err := dockerref.ParseNormalizedNamed(image)
if err != nil {
return "", "", "", fmt.Errorf("couldn't parse image name: %v", err)
return "", "", "", fmt.Errorf("couldn't parse image name %q: %v", image, err)
}
repoToPull := named.Name()