Merge pull request #103724 from claudiubelu/update-e2e-test-images-url

Update e2e test images url
This commit is contained in:
Kubernetes Prow Robot 2021-08-12 09:10:13 -07:00 committed by GitHub
commit 98e526390d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 32 additions and 41 deletions

View File

@ -8,4 +8,5 @@ metadata:
spec:
containers:
- name: kubernetes-serve-hostname
image: gcr.io/kubernetes-e2e-test-images/serve-hostname-amd64:1.1
image: k8s.gcr.io/e2e-test-images/agnhost:2.32
command: ["/agnhost", "serve-hostname"]

View File

@ -20,8 +20,8 @@ spec:
- name: wardle-server
# build from staging/src/k8s.io/sample-apiserver/artifacts/simple-image/Dockerfile
# or
# docker pull gcr.io/kubernetes-e2e-test-images/sample-apiserver:1.17
# docker tag gcr.io/kubernetes-e2e-test-images/sample-apiserver:1.17 kube-sample-apiserver:latest
# docker pull k8s.gcr.io/e2e-test-images/sample-apiserver:1.17.4
# docker tag k8s.gcr.io/e2e-test-images/sample-apiserver:1.17.4 kube-sample-apiserver:latest
image: kube-sample-apiserver:latest
imagePullPolicy: Never
args: [ "--etcd-servers=http://localhost:2379" ]

View File

@ -11,6 +11,6 @@ spec:
spec:
containers:
- name: echoheaders-https
image: gcr.io/kubernetes-e2e-test-images/echoserver:2.2
image: k8s.gcr.io/e2e-test-images/echoserver:2.3
ports:
- containerPort: 8080

View File

@ -11,7 +11,7 @@ spec:
spec:
containers:
- name: echoheaders
image: gcr.io/kubernetes-e2e-test-images/echoserver:2.2
image: k8s.gcr.io/e2e-test-images/echoserver:2.3
ports:
- containerPort: 8080
readinessProbe:

View File

@ -14,6 +14,6 @@ spec:
spec:
containers:
- name: echoheaders
image: gcr.io/kubernetes-e2e-test-images/echoserver:2.2
image: k8s.gcr.io/e2e-test-images/echoserver:2.3
ports:
- containerPort: 8443

View File

@ -11,6 +11,6 @@ spec:
spec:
containers:
- name: echoheaders-https
image: gcr.io/kubernetes-e2e-test-images/echoserver:2.2
image: k8s.gcr.io/e2e-test-images/echoserver:2.3
ports:
- containerPort: 8080

View File

@ -15,7 +15,8 @@ spec:
run: hostname
spec:
containers:
- image: gcr.io/kubernetes-e2e-test-images/serve-hostname:1.1
- image: k8s.gcr.io/e2e-test-images/agnhost:2.32
command: ["/agnhost", "serve-hostname"]
imagePullPolicy: IfNotPresent
name: hostname
terminationGracePeriodSeconds: 120

View File

@ -14,21 +14,15 @@ spec:
run: hostname
spec:
containers:
- image: gcr.io/kubernetes-e2e-test-images/serve-hostname:1.1
- image: k8s.gcr.io/e2e-test-images/agnhost:2.32
name: host1
command:
- /bin/sh
- -c
- /serve_hostname -http=true -udp=false -port=8000
args: ["serve-hostname", "--http=true", "--udp=false", "--port=8000"]
ports:
- protocol: TCP
containerPort: 8000
- image: gcr.io/kubernetes-e2e-test-images/serve-hostname:1.1
- image: k8s.gcr.io/e2e-test-images/agnhost:2.32
name: host2
command:
- /bin/sh
- -c
- /serve_hostname -http=true -udp=false -port=8080
args: ["serve-hostname", "--http=true", "--udp=false", "--port=8080"]
ports:
- protocol: TCP
containerPort: 8080

View File

@ -15,7 +15,8 @@ spec:
run: hostname
spec:
containers:
- image: gcr.io/kubernetes-e2e-test-images/serve-hostname:1.1
- image: k8s.gcr.io/e2e-test-images/agnhost:2.32
command: ["/agnhost", "serve-hostname"]
imagePullPolicy: IfNotPresent
name: hostname
terminationGracePeriodSeconds: 120

View File

@ -11,6 +11,6 @@ spec:
spec:
containers:
- name: echoheaders-https
image: gcr.io/kubernetes-e2e-test-images/echoserver:2.2
image: k8s.gcr.io/e2e-test-images/echoserver:2.3
ports:
- containerPort: 8080

View File

@ -11,6 +11,6 @@ spec:
spec:
containers:
- name: echoheaders-https
image: gcr.io/kubernetes-e2e-test-images/echoserver:2.2
image: k8s.gcr.io/e2e-test-images/echoserver:2.3
ports:
- containerPort: 8080

View File

@ -8,7 +8,7 @@ metadata:
spec:
containers:
- name: primary
image: gcr.io/kubernetes-e2e-test-images/agnhost:1.0
image: k8s.gcr.io/e2e-test-images/agnhost:2.32
env:
- name: PRIMARY
value: "true"
@ -21,7 +21,7 @@ spec:
- mountPath: /agnhost-primary-data
name: data
- name: sentinel
image: gcr.io/kubernetes-e2e-test-images/agnhost:1.0
image: k8s.gcr.io/e2e-test-images/agnhost:2.32
env:
- name: SENTINEL
value: "true"

View File

@ -12,7 +12,8 @@ spec:
spec:
containers:
- name: netexec
image: gcr.io/kubernetes-e2e-test-images/netexec:1.0
image: k8s.gcr.io/e2e-test-images/agnhost:2.32
command: ["/agnhost", "netexec"]
ports:
- containerPort: 8080
# This is to force these pods to land on different hosts.

View File

@ -10,7 +10,7 @@ metadata:
spec:
containers:
- name: master
image: gcr.io/kubernetes-e2e-test-images/redis:1.0
image: k8s.gcr.io/e2e-test-images/redis:5.0.5-alpine
env:
- name: MASTER
value: "true"
@ -23,7 +23,7 @@ spec:
- mountPath: /redis-master-data
name: data
- name: sentinel
image: gcr.io/kubernetes-e2e-test-images/redis:1.0
image: k8s.gcr.io/e2e-test-images/redis:5.0.5-alpine
env:
- name: SENTINEL
value: "true"
@ -42,7 +42,8 @@ metadata:
spec:
containers:
- name: kubernetes-serve-hostname
image: gcr.io/kubernetes-e2e-test-images/serve-hostname:1.0
image: k8s.gcr.io/e2e-test-images/agnhost:2.32
command: ["/agnhost", "serve-hostname"]
resources:
limits:
cpu: "1"

View File

@ -30,7 +30,8 @@ items:
spec:
containers:
- name: kubernetes-serve-hostname
image: gcr.io/kubernetes-e2e-test-images/serve-hostname:1.1
image: k8s.gcr.io/e2e-test-images/agnhost:2.32
command: ["/agnhost", "serve-hostname"]
resources:
limits:
cpu: "1"

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
REGISTRY ?= gcr.io/kubernetes-e2e-test-images
REGISTRY ?= k8s.gcr.io/e2e-test-images
GOARM ?= 7
DOCKER_CERT_BASE_PATH ?=
QEMUVERSION=v5.1.0-2

View File

@ -130,7 +130,7 @@ To build AND push an image, the following command can be used:
make all-push WHAT=agnhost
```
By default, the images will be tagged and pushed under the `gcr.io/kubernetes-e2e-test-images`
By default, the images will be tagged and pushed under the `k8s.gcr.io/e2e-test-images`
registry. That can changed by running this command instead:
```bash
@ -141,7 +141,7 @@ REGISTRY=foo_registry make all-push WHAT=agnhost
require the `agnhost` image to be published in an authenticated repo as well:
```bash
REGISTRY=gcr.io/kubernetes-e2e-test-images make all-push WHAT=agnhost
REGISTRY=k8s.gcr.io/e2e-test-images make all-push WHAT=agnhost
REGISTRY=gcr.io/k8s-authenticated-test make all-push WHAT=agnhost
```
@ -163,7 +163,6 @@ export KUBE_TEST_REPO_LIST=/path/to/repo_list.yaml
to pull the images from. Sample file:
```yaml
e2eRegistry: your-awesome-registry
promoterE2eRegistry: your-awesome-registry
gcRegistry: your-awesome-registry
sampleRegistry: your-awesome-registry

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
REGISTRY ?= gcr.io/kubernetes-e2e-test-images
REGISTRY ?= k8s.gcr.io/e2e-test-images
REMOTE_DOCKER_URL ?=
DOCKER_CERT_PATH ?= "$(HOME)/.docker"
export

View File

@ -31,7 +31,6 @@ import (
// RegistryList holds public and private image registries
type RegistryList struct {
GcAuthenticatedRegistry string `yaml:"gcAuthenticatedRegistry"`
E2eRegistry string `yaml:"e2eRegistry"`
PromoterE2eRegistry string `yaml:"promoterE2eRegistry"`
BuildImageRegistry string `yaml:"buildImageRegistry"`
InvalidRegistry string `yaml:"invalidRegistry"`
@ -89,7 +88,6 @@ func initReg() RegistryList {
var (
initRegistry = RegistryList{
GcAuthenticatedRegistry: "gcr.io/authenticated-image-pulling",
E2eRegistry: "gcr.io/kubernetes-e2e-test-images",
PromoterE2eRegistry: "k8s.gcr.io/e2e-test-images",
BuildImageRegistry: "k8s.gcr.io/build-image",
InvalidRegistry: "invalid.com/invalid",
@ -379,8 +377,6 @@ func replaceRegistryInImageURLWithList(imageURL string, reg RegistryList) (strin
}
switch registryAndUser {
case initRegistry.E2eRegistry:
registryAndUser = reg.E2eRegistry
case initRegistry.GcRegistry:
registryAndUser = reg.GcRegistry
case initRegistry.SigStorageRegistry:

View File

@ -40,9 +40,6 @@ func TestReplaceRegistryInImageURL(t *testing.T) {
}, {
in: "test",
out: "test.io/library/test",
}, {
in: "gcr.io/kubernetes-e2e-test-images/test:123",
out: "test.io/kubernetes-e2e-test-images/test:123",
}, {
in: "k8s.gcr.io/test:123",
out: "test.io/test:123",
@ -76,7 +73,6 @@ func TestReplaceRegistryInImageURL(t *testing.T) {
// Set custom registries
reg := RegistryList{
DockerLibraryRegistry: "test.io/library",
E2eRegistry: "test.io/kubernetes-e2e-test-images",
GcRegistry: "test.io",
PrivateRegistry: "test.io/k8s-authenticated-test",
SigStorageRegistry: "test.io/sig-storage",