Update the base nginx image for the 1.20.1 update (#7189)
* Update the base nginx image for the 1.20.1 update * update the tests with the new nginx base image
This commit is contained in:
parent
9a9d7f70c7
commit
96a87c79b8
4 changed files with 9 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -51,7 +51,7 @@ endif
|
||||||
|
|
||||||
REGISTRY ?= gcr.io/k8s-staging-ingress-nginx
|
REGISTRY ?= gcr.io/k8s-staging-ingress-nginx
|
||||||
|
|
||||||
BASE_IMAGE ?= k8s.gcr.io/ingress-nginx/nginx:v20210324-g8baef769d@sha256:fcfa3e9d1f8ec3141efedbf77cf659640f452a9c22165c78006ea462b84d06f6
|
BASE_IMAGE ?= k8s.gcr.io/ingress-nginx/nginx:v20210530-g6aab4c291@sha256:a7356029dd0c26cc3466bf7a27daec0f4df73aa14ca6c8b871a767022a812c0b
|
||||||
|
|
||||||
GOARCH=$(ARCH)
|
GOARCH=$(ARCH)
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: k8s.gcr.io/ingress-nginx/nginx:v20210324-g8baef769d@sha256:fcfa3e9d1f8ec3141efedbf77cf659640f452a9c22165c78006ea462b84d06f6
|
image: k8s.gcr.io/ingress-nginx/nginx:v20210530-g6aab4c291@sha256:a7356029dd0c26cc3466bf7a27daec0f4df73aa14ca6c8b871a767022a812c0b
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
- containerPort: 443
|
- containerPort: 443
|
||||||
|
|
|
@ -23,6 +23,8 @@ REGISTRY ?= local
|
||||||
|
|
||||||
IMAGE = $(REGISTRY)/e2e-test-runner
|
IMAGE = $(REGISTRY)/e2e-test-runner
|
||||||
|
|
||||||
|
NGINX_BASE_IMAGE ?= k8s.gcr.io/ingress-nginx/nginx:v20210530-g6aab4c291@sha256:a7356029dd0c26cc3466bf7a27daec0f4df73aa14ca6c8b871a767022a812c0b
|
||||||
|
|
||||||
# required to enable buildx
|
# required to enable buildx
|
||||||
export DOCKER_CLI_EXPERIMENTAL=enabled
|
export DOCKER_CLI_EXPERIMENTAL=enabled
|
||||||
|
|
||||||
|
@ -36,7 +38,7 @@ build: ensure-buildx
|
||||||
--platform=${PLATFORMS} $(OUTPUT) \
|
--platform=${PLATFORMS} $(OUTPUT) \
|
||||||
--progress=$(PROGRESS) \
|
--progress=$(PROGRESS) \
|
||||||
--pull \
|
--pull \
|
||||||
--build-arg BASE_IMAGE=k8s.gcr.io/ingress-nginx/nginx:v20210324-g8baef769d@sha256:fcfa3e9d1f8ec3141efedbf77cf659640f452a9c22165c78006ea462b84d06f6 \
|
--build-arg BASE_IMAGE=$(NGINX_BASE_IMAGE) \
|
||||||
--build-arg GOLANG_VERSION=1.15.6 \
|
--build-arg GOLANG_VERSION=1.15.6 \
|
||||||
--build-arg ETCD_VERSION=3.4.3-0 \
|
--build-arg ETCD_VERSION=3.4.3-0 \
|
||||||
--build-arg K8S_RELEASE=v1.19.4 \
|
--build-arg K8S_RELEASE=v1.19.4 \
|
||||||
|
|
|
@ -37,6 +37,9 @@ const SlowEchoService = "slow-echo"
|
||||||
// HTTPBinService name of the deployment for the httpbin app
|
// HTTPBinService name of the deployment for the httpbin app
|
||||||
const HTTPBinService = "httpbin"
|
const HTTPBinService = "httpbin"
|
||||||
|
|
||||||
|
// NginxBaseImage use for testing
|
||||||
|
const NginxBaseImage = "k8s.gcr.io/ingress-nginx/nginx:v20210530-g6aab4c291@sha256:a7356029dd0c26cc3466bf7a27daec0f4df73aa14ca6c8b871a767022a812c0b"
|
||||||
|
|
||||||
// NewEchoDeployment creates a new single replica deployment of the echoserver image in a particular namespace
|
// NewEchoDeployment creates a new single replica deployment of the echoserver image in a particular namespace
|
||||||
func (f *Framework) NewEchoDeployment() {
|
func (f *Framework) NewEchoDeployment() {
|
||||||
f.NewEchoDeploymentWithReplicas(1)
|
f.NewEchoDeploymentWithReplicas(1)
|
||||||
|
@ -139,7 +142,7 @@ func (f *Framework) NGINXWithConfigDeployment(name string, cfg string) {
|
||||||
}, metav1.CreateOptions{})
|
}, metav1.CreateOptions{})
|
||||||
assert.Nil(ginkgo.GinkgoT(), err, "creating configmap")
|
assert.Nil(ginkgo.GinkgoT(), err, "creating configmap")
|
||||||
|
|
||||||
deployment := newDeployment(name, f.Namespace, "k8s.gcr.io/ingress-nginx/nginx:v20210324-g8baef769d@sha256:fcfa3e9d1f8ec3141efedbf77cf659640f452a9c22165c78006ea462b84d06f6", 80, 1,
|
deployment := newDeployment(name, f.Namespace, NginxBaseImage, 80, 1,
|
||||||
nil,
|
nil,
|
||||||
[]corev1.VolumeMount{
|
[]corev1.VolumeMount{
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue