mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #93521 from msau42/update-registry
Update e2e csi images to k8s.gcr.io
This commit is contained in:
commit
35c8fece86
@ -21,7 +21,7 @@ spec:
|
|||||||
serviceAccountName: csi-gce-pd-controller-sa
|
serviceAccountName: csi-gce-pd-controller-sa
|
||||||
containers:
|
containers:
|
||||||
- name: csi-snapshotter
|
- name: csi-snapshotter
|
||||||
image: gcr.io/k8s-staging-csi/csi-snapshotter:v2.0.1
|
image: gcr.io/gke-release/csi-snapshotter:v2.1.1-gke.0
|
||||||
args:
|
args:
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--csi-address=/csi/csi.sock"
|
- "--csi-address=/csi/csi.sock"
|
||||||
@ -30,7 +30,7 @@ spec:
|
|||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: gcr.io/gke-release/csi-provisioner:v1.5.0-gke.0
|
image: gcr.io/gke-release/csi-provisioner:v1.6.0-gke.0
|
||||||
args:
|
args:
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--csi-address=/csi/csi.sock"
|
- "--csi-address=/csi/csi.sock"
|
||||||
@ -39,7 +39,7 @@ spec:
|
|||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- name: csi-attacher
|
- name: csi-attacher
|
||||||
image: gcr.io/gke-release/csi-attacher:v2.1.1-gke.0
|
image: gcr.io/gke-release/csi-attacher:v2.2.0-gke.0
|
||||||
args:
|
args:
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--csi-address=/csi/csi.sock"
|
- "--csi-address=/csi/csi.sock"
|
||||||
@ -47,7 +47,7 @@ spec:
|
|||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- name: csi-resizer
|
- name: csi-resizer
|
||||||
image: gcr.io/gke-release/csi-resizer:v0.4.0-gke.0
|
image: gcr.io/gke-release/csi-resizer:v0.5.0-gke.0
|
||||||
args:
|
args:
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--csi-address=/csi/csi.sock"
|
- "--csi-address=/csi/csi.sock"
|
||||||
|
@ -18,7 +18,7 @@ spec:
|
|||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
- name: csi-driver-registrar
|
- name: csi-driver-registrar
|
||||||
image: gcr.io/gke-release/csi-node-driver-registrar:v1.2.0-gke.0
|
image: gcr.io/gke-release/csi-node-driver-registrar:v1.3.0-gke.0
|
||||||
args:
|
args:
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--csi-address=/csi/csi.sock"
|
- "--csi-address=/csi/csi.sock"
|
||||||
@ -40,7 +40,7 @@ spec:
|
|||||||
- name: gce-pd-driver
|
- name: gce-pd-driver
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
image: gcr.io/gke-release/gcp-compute-persistent-disk-csi-driver:v0.6.2-gke.0
|
image: gcr.io/gke-release/gcp-compute-persistent-disk-csi-driver:v0.7.0-gke.0
|
||||||
args:
|
args:
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--endpoint=unix:/csi/csi.sock"
|
- "--endpoint=unix:/csi/csi.sock"
|
||||||
@ -103,4 +103,4 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
- operator: Exists
|
- operator: Exists
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/os: linux
|
kubernetes.io/os: linux
|
||||||
|
@ -40,7 +40,7 @@ spec:
|
|||||||
serviceAccountName: csi-attacher
|
serviceAccountName: csi-attacher
|
||||||
containers:
|
containers:
|
||||||
- name: csi-attacher
|
- name: csi-attacher
|
||||||
image: gcr.io/k8s-staging-csi/csi-attacher:v2.2.0
|
image: k8s.gcr.io/sig-storage/csi-attacher:v2.2.0
|
||||||
args:
|
args:
|
||||||
- --v=5
|
- --v=5
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
|
@ -36,7 +36,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: node-driver-registrar
|
- name: node-driver-registrar
|
||||||
image: gcr.io/k8s-staging-csi/csi-node-driver-registrar:v1.3.0
|
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v1.3.0
|
||||||
args:
|
args:
|
||||||
- --v=5
|
- --v=5
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
@ -61,7 +61,7 @@ spec:
|
|||||||
name: csi-data-dir
|
name: csi-data-dir
|
||||||
|
|
||||||
- name: hostpath
|
- name: hostpath
|
||||||
image: gcr.io/k8s-staging-csi/hostpathplugin:v1.4.0-rc2
|
image: k8s.gcr.io/sig-storage/hostpathplugin:v1.4.0
|
||||||
args:
|
args:
|
||||||
- "--drivername=hostpath.csi.k8s.io"
|
- "--drivername=hostpath.csi.k8s.io"
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
@ -109,7 +109,7 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /csi
|
- mountPath: /csi
|
||||||
name: socket-dir
|
name: socket-dir
|
||||||
image: gcr.io/k8s-staging-csi/livenessprobe:v1.1.0
|
image: k8s.gcr.io/sig-storage/livenessprobe:v1.1.0
|
||||||
args:
|
args:
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
- --health-port=9898
|
- --health-port=9898
|
||||||
|
@ -40,7 +40,7 @@ spec:
|
|||||||
serviceAccountName: csi-provisioner
|
serviceAccountName: csi-provisioner
|
||||||
containers:
|
containers:
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: gcr.io/k8s-staging-csi/csi-provisioner:v1.6.0
|
image: k8s.gcr.io/sig-storage/csi-provisioner:v1.6.0
|
||||||
args:
|
args:
|
||||||
- -v=5
|
- -v=5
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
|
@ -40,7 +40,7 @@ spec:
|
|||||||
serviceAccountName: csi-resizer
|
serviceAccountName: csi-resizer
|
||||||
containers:
|
containers:
|
||||||
- name: csi-resizer
|
- name: csi-resizer
|
||||||
image: gcr.io/k8s-staging-csi/csi-resizer:v0.5.0
|
image: k8s.gcr.io/sig-storage/csi-resizer:v0.5.0
|
||||||
args:
|
args:
|
||||||
- -v=5
|
- -v=5
|
||||||
- -csi-address=/csi/csi.sock
|
- -csi-address=/csi/csi.sock
|
||||||
|
@ -40,7 +40,7 @@ spec:
|
|||||||
serviceAccount: csi-snapshotter
|
serviceAccount: csi-snapshotter
|
||||||
containers:
|
containers:
|
||||||
- name: csi-snapshotter
|
- name: csi-snapshotter
|
||||||
image: gcr.io/k8s-staging-csi/csi-snapshotter:v2.1.0
|
image: k8s.gcr.io/sig-storage/csi-snapshotter:v2.1.0
|
||||||
args:
|
args:
|
||||||
- -v=5
|
- -v=5
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
|
@ -15,7 +15,7 @@ spec:
|
|||||||
serviceAccountName: csi-mock
|
serviceAccountName: csi-mock
|
||||||
containers:
|
containers:
|
||||||
- name: csi-attacher
|
- name: csi-attacher
|
||||||
image: gcr.io/k8s-staging-csi/csi-attacher:v3.0.0-rc1
|
image: k8s.gcr.io/sig-storage/csi-attacher:v2.2.0
|
||||||
args:
|
args:
|
||||||
- --v=5
|
- --v=5
|
||||||
- --csi-address=$(ADDRESS)
|
- --csi-address=$(ADDRESS)
|
||||||
|
@ -15,7 +15,7 @@ spec:
|
|||||||
serviceAccountName: csi-mock
|
serviceAccountName: csi-mock
|
||||||
containers:
|
containers:
|
||||||
- name: csi-resizer
|
- name: csi-resizer
|
||||||
image: gcr.io/k8s-staging-csi/csi-resizer:v0.4.0
|
image: k8s.gcr.io/sig-storage/csi-resizer:v0.5.0
|
||||||
args:
|
args:
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
|
@ -15,7 +15,7 @@ spec:
|
|||||||
serviceAccountName: csi-mock
|
serviceAccountName: csi-mock
|
||||||
containers:
|
containers:
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: gcr.io/k8s-staging-csi/csi-provisioner:v2.0.0-rc1
|
image: k8s.gcr.io/sig-storage/csi-provisioner:v1.6.0
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
# Topology support is needed for the pod rescheduling test
|
# Topology support is needed for the pod rescheduling test
|
||||||
@ -29,7 +29,7 @@ spec:
|
|||||||
- mountPath: /csi
|
- mountPath: /csi
|
||||||
name: socket-dir
|
name: socket-dir
|
||||||
- name: driver-registrar
|
- name: driver-registrar
|
||||||
image: gcr.io/k8s-staging-csi/csi-node-driver-registrar:v1.2.0
|
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v1.3.0
|
||||||
args:
|
args:
|
||||||
- --v=5
|
- --v=5
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
@ -48,7 +48,7 @@ spec:
|
|||||||
- mountPath: /registration
|
- mountPath: /registration
|
||||||
name: registration-dir
|
name: registration-dir
|
||||||
- name: mock
|
- name: mock
|
||||||
image: gcr.io/k8s-staging-csi/mock-driver:v3.1.0
|
image: k8s.gcr.io/sig-storage/mock-driver:v3.1.0
|
||||||
args:
|
args:
|
||||||
- "--name=mock.storage.k8s.io"
|
- "--name=mock.storage.k8s.io"
|
||||||
- "--permissive-target-path" # because of https://github.com/kubernetes/kubernetes/issues/75535
|
- "--permissive-target-path" # because of https://github.com/kubernetes/kubernetes/issues/75535
|
||||||
|
@ -36,10 +36,10 @@ type RegistryList struct {
|
|||||||
BuildImageRegistry string `yaml:"buildImageRegistry"`
|
BuildImageRegistry string `yaml:"buildImageRegistry"`
|
||||||
InvalidRegistry string `yaml:"invalidRegistry"`
|
InvalidRegistry string `yaml:"invalidRegistry"`
|
||||||
GcRegistry string `yaml:"gcRegistry"`
|
GcRegistry string `yaml:"gcRegistry"`
|
||||||
|
SigStorageRegistry string `yaml:"sigStorageRegistry"`
|
||||||
GcrReleaseRegistry string `yaml:"gcrReleaseRegistry"`
|
GcrReleaseRegistry string `yaml:"gcrReleaseRegistry"`
|
||||||
PrivateRegistry string `yaml:"privateRegistry"`
|
PrivateRegistry string `yaml:"privateRegistry"`
|
||||||
SampleRegistry string `yaml:"sampleRegistry"`
|
SampleRegistry string `yaml:"sampleRegistry"`
|
||||||
K8sCSI string `yaml:"k8sCSI"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config holds an images registry, name, and version
|
// Config holds an images registry, name, and version
|
||||||
@ -75,10 +75,10 @@ func initReg() RegistryList {
|
|||||||
BuildImageRegistry: "k8s.gcr.io/build-image",
|
BuildImageRegistry: "k8s.gcr.io/build-image",
|
||||||
InvalidRegistry: "invalid.com/invalid",
|
InvalidRegistry: "invalid.com/invalid",
|
||||||
GcRegistry: "k8s.gcr.io",
|
GcRegistry: "k8s.gcr.io",
|
||||||
|
SigStorageRegistry: "k8s.gcr.io/sig-storage",
|
||||||
GcrReleaseRegistry: "gcr.io/gke-release",
|
GcrReleaseRegistry: "gcr.io/gke-release",
|
||||||
PrivateRegistry: "gcr.io/k8s-authenticated-test",
|
PrivateRegistry: "gcr.io/k8s-authenticated-test",
|
||||||
SampleRegistry: "gcr.io/google-samples",
|
SampleRegistry: "gcr.io/google-samples",
|
||||||
K8sCSI: "gcr.io/k8s-staging-csi",
|
|
||||||
}
|
}
|
||||||
repoList := os.Getenv("KUBE_TEST_REPO_LIST")
|
repoList := os.Getenv("KUBE_TEST_REPO_LIST")
|
||||||
if repoList == "" {
|
if repoList == "" {
|
||||||
@ -107,9 +107,9 @@ var (
|
|||||||
buildImageRegistry = registry.BuildImageRegistry
|
buildImageRegistry = registry.BuildImageRegistry
|
||||||
gcAuthenticatedRegistry = registry.GcAuthenticatedRegistry
|
gcAuthenticatedRegistry = registry.GcAuthenticatedRegistry
|
||||||
gcRegistry = registry.GcRegistry
|
gcRegistry = registry.GcRegistry
|
||||||
|
sigStorageRegistry = registry.SigStorageRegistry
|
||||||
gcrReleaseRegistry = registry.GcrReleaseRegistry
|
gcrReleaseRegistry = registry.GcrReleaseRegistry
|
||||||
invalidRegistry = registry.InvalidRegistry
|
invalidRegistry = registry.InvalidRegistry
|
||||||
k8sCSI = registry.K8sCSI
|
|
||||||
// PrivateRegistry is an image repository that requires authentication
|
// PrivateRegistry is an image repository that requires authentication
|
||||||
PrivateRegistry = registry.PrivateRegistry
|
PrivateRegistry = registry.PrivateRegistry
|
||||||
sampleRegistry = registry.SampleRegistry
|
sampleRegistry = registry.SampleRegistry
|
||||||
@ -221,7 +221,7 @@ func initImageConfigs() map[int]Config {
|
|||||||
configs[JessieDnsutils] = Config{e2eRegistry, "jessie-dnsutils", "1.0"}
|
configs[JessieDnsutils] = Config{e2eRegistry, "jessie-dnsutils", "1.0"}
|
||||||
configs[Kitten] = Config{e2eRegistry, "kitten", "1.0"}
|
configs[Kitten] = Config{e2eRegistry, "kitten", "1.0"}
|
||||||
configs[Nautilus] = Config{e2eRegistry, "nautilus", "1.0"}
|
configs[Nautilus] = Config{e2eRegistry, "nautilus", "1.0"}
|
||||||
configs[NFSProvisioner] = Config{k8sCSI, "nfs-provisioner", "v2.2.2"}
|
configs[NFSProvisioner] = Config{sigStorageRegistry, "nfs-provisioner", "v2.2.2"}
|
||||||
configs[Nginx] = Config{dockerLibraryRegistry, "nginx", "1.14-alpine"}
|
configs[Nginx] = Config{dockerLibraryRegistry, "nginx", "1.14-alpine"}
|
||||||
configs[NginxNew] = Config{dockerLibraryRegistry, "nginx", "1.15-alpine"}
|
configs[NginxNew] = Config{dockerLibraryRegistry, "nginx", "1.15-alpine"}
|
||||||
configs[Nonewprivs] = Config{e2eRegistry, "nonewprivs", "1.0"}
|
configs[Nonewprivs] = Config{e2eRegistry, "nonewprivs", "1.0"}
|
||||||
@ -280,6 +280,8 @@ func ReplaceRegistryInImageURL(imageURL string) (string, error) {
|
|||||||
registryAndUser = e2eVolumeRegistry
|
registryAndUser = e2eVolumeRegistry
|
||||||
case "k8s.gcr.io":
|
case "k8s.gcr.io":
|
||||||
registryAndUser = gcRegistry
|
registryAndUser = gcRegistry
|
||||||
|
case "k8s.gcr.io/sig-storage":
|
||||||
|
registryAndUser = sigStorageRegistry
|
||||||
case "gcr.io/k8s-authenticated-test":
|
case "gcr.io/k8s-authenticated-test":
|
||||||
registryAndUser = PrivateRegistry
|
registryAndUser = PrivateRegistry
|
||||||
case "gcr.io/google-samples":
|
case "gcr.io/google-samples":
|
||||||
@ -288,8 +290,6 @@ func ReplaceRegistryInImageURL(imageURL string) (string, error) {
|
|||||||
registryAndUser = gcrReleaseRegistry
|
registryAndUser = gcrReleaseRegistry
|
||||||
case "docker.io/library":
|
case "docker.io/library":
|
||||||
registryAndUser = dockerLibraryRegistry
|
registryAndUser = dockerLibraryRegistry
|
||||||
case "gcr.io/k8s-staging-csi":
|
|
||||||
registryAndUser = k8sCSI
|
|
||||||
default:
|
default:
|
||||||
if countParts == 1 {
|
if countParts == 1 {
|
||||||
// We assume we found an image from docker hub library
|
// We assume we found an image from docker hub library
|
||||||
|
@ -94,9 +94,9 @@ var registryTests = []struct {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"gcr.io/k8s-staging-csi/test:latest",
|
"k8s.gcr.io/sig-storage/test:latest",
|
||||||
result{
|
result{
|
||||||
result: "test.io/k8s-staging-csi/test:latest",
|
result: "test.io/sig-storage/test:latest",
|
||||||
err: nil,
|
err: nil,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -119,7 +119,7 @@ func TestReplaceRegistryInImageURL(t *testing.T) {
|
|||||||
gcrReleaseRegistry = "test.io/gke-release"
|
gcrReleaseRegistry = "test.io/gke-release"
|
||||||
PrivateRegistry = "test.io/k8s-authenticated-test"
|
PrivateRegistry = "test.io/k8s-authenticated-test"
|
||||||
sampleRegistry = "test.io/google-samples"
|
sampleRegistry = "test.io/google-samples"
|
||||||
k8sCSI = "test.io/k8s-staging-csi"
|
sigStorageRegistry = "test.io/sig-storage"
|
||||||
|
|
||||||
for _, tt := range registryTests {
|
for _, tt := range registryTests {
|
||||||
t.Run(tt.in, func(t *testing.T) {
|
t.Run(tt.in, func(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user