mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
revert removal of gcr.io/gke-release from pr 100179
This commit is contained in:
parent
2a26f276a8
commit
c0e61e95a0
@ -78,6 +78,7 @@ func initReg() RegistryList {
|
||||
SigStorageRegistry: "k8s.gcr.io/sig-storage",
|
||||
PrivateRegistry: "gcr.io/k8s-authenticated-test",
|
||||
SampleRegistry: "gcr.io/google-samples",
|
||||
GcrReleaseRegistry: "gcr.io/gke-release",
|
||||
MicrosoftRegistry: "mcr.microsoft.com",
|
||||
}
|
||||
repoList := os.Getenv("KUBE_TEST_REPO_LIST")
|
||||
@ -112,6 +113,7 @@ var (
|
||||
gcEtcdRegistry = registry.GcEtcdRegistry
|
||||
gcRegistry = registry.GcRegistry
|
||||
sigStorageRegistry = registry.SigStorageRegistry
|
||||
gcrReleaseRegistry = registry.GcrReleaseRegistry
|
||||
invalidRegistry = registry.InvalidRegistry
|
||||
sampleRegistry = registry.SampleRegistry
|
||||
microsoftRegistry = registry.MicrosoftRegistry
|
||||
@ -390,6 +392,8 @@ func ReplaceRegistryInImageURL(imageURL string) (string, error) {
|
||||
registryAndUser = PrivateRegistry
|
||||
case "gcr.io/google-samples":
|
||||
registryAndUser = sampleRegistry
|
||||
case "gcr.io/gke-release":
|
||||
registryAndUser = gcrReleaseRegistry
|
||||
case "docker.io/library":
|
||||
registryAndUser = dockerLibraryRegistry
|
||||
default:
|
||||
|
@ -82,6 +82,13 @@ var registryTests = []struct {
|
||||
err: nil,
|
||||
},
|
||||
},
|
||||
{
|
||||
"gcr.io/gke-release/test:latest",
|
||||
result{
|
||||
result: "test.io/gke-release/test:latest",
|
||||
err: nil,
|
||||
},
|
||||
},
|
||||
{
|
||||
"k8s.gcr.io/sig-storage/test:latest",
|
||||
result{
|
||||
@ -104,6 +111,7 @@ func TestReplaceRegistryInImageURL(t *testing.T) {
|
||||
dockerLibraryRegistry = "test.io/library"
|
||||
e2eRegistry = "test.io/kubernetes-e2e-test-images"
|
||||
gcRegistry = "test.io"
|
||||
gcrReleaseRegistry = "test.io/gke-release"
|
||||
PrivateRegistry = "test.io/k8s-authenticated-test"
|
||||
sampleRegistry = "test.io/google-samples"
|
||||
sigStorageRegistry = "test.io/sig-storage"
|
||||
|
Loading…
Reference in New Issue
Block a user