Move from k8s.gcr.io to registry.k8s.io

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas
2022-05-10 08:30:09 -04:00
parent aae07c6f7b
commit 50bea1dad8
232 changed files with 509 additions and 507 deletions

View File

@@ -109,7 +109,7 @@ func generateImageTags() []string {
// that kubelet report up to MaxNamesPerImageInNodeStatus tags.
count := rand.IntnRange(nodestatus.MaxNamesPerImageInNodeStatus+1, maxImageTagsForTest+1)
for ; count > 0; count-- {
tagList = append(tagList, "k8s.gcr.io:v"+strconv.Itoa(count))
tagList = append(tagList, "registry.k8s.io:v"+strconv.Itoa(count))
}
return tagList
}
@@ -463,11 +463,11 @@ func TestUpdateExistingNodeStatus(t *testing.T) {
// images will be sorted from max to min in node status.
Images: []v1.ContainerImage{
{
Names: []string{"k8s.gcr.io:v1", "k8s.gcr.io:v2"},
Names: []string{"registry.k8s.io:v1", "registry.k8s.io:v2"},
SizeBytes: 123,
},
{
Names: []string{"k8s.gcr.io:v3", "k8s.gcr.io:v4"},
Names: []string{"registry.k8s.io:v3", "registry.k8s.io:v4"},
SizeBytes: 456,
},
},
@@ -661,11 +661,11 @@ func TestUpdateNodeStatusWithRuntimeStateError(t *testing.T) {
},
Images: []v1.ContainerImage{
{
Names: []string{"k8s.gcr.io:v1", "k8s.gcr.io:v2"},
Names: []string{"registry.k8s.io:v1", "registry.k8s.io:v2"},
SizeBytes: 123,
},
{
Names: []string{"k8s.gcr.io:v3", "k8s.gcr.io:v4"},
Names: []string{"registry.k8s.io:v3", "registry.k8s.io:v4"},
SizeBytes: 456,
},
},
@@ -890,11 +890,11 @@ func TestUpdateNodeStatusWithLease(t *testing.T) {
// images will be sorted from max to min in node status.
Images: []v1.ContainerImage{
{
Names: []string{"k8s.gcr.io:v1", "k8s.gcr.io:v2"},
Names: []string{"registry.k8s.io:v1", "registry.k8s.io:v2"},
SizeBytes: 123,
},
{
Names: []string{"k8s.gcr.io:v3", "k8s.gcr.io:v4"},
Names: []string{"registry.k8s.io:v3", "registry.k8s.io:v4"},
SizeBytes: 456,
},
},