Skip to content

Commit 74272a0

Browse files
committed
Fix issue upgrading kube-proxy
Calling reference.FamiliarString incorrectly strips docker.io making the image name no longer canonical
1 parent 0fd85f3 commit 74272a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/container/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func ModifyImageTag(imageName, tagName string) (string, error) {
123123
return "", errors.Wrap(err, "failed to update image tag")
124124
}
125125

126-
return reference.FamiliarString(reference.TagNameOnly(namedTagged)), nil
126+
return reference.TagNameOnly(namedTagged).String(), nil
127127
}
128128

129129
// ImageTagIsValid ensures that a given image tag is compliant with the OCI spec.

0 commit comments

Comments
 (0)