Skip to content

Commit c67f3fd

Browse files
authored
Merge pull request #1987 from robscott/v0.7.0-rc1-webhook
Bumping webhook version to v0.7.0-rc1
2 parents 809491a + ecbcc6f commit c67f3fd

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

config/webhook/admission_webhook.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ spec:
5656
spec:
5757
containers:
5858
- name: webhook
59-
image: gcr.io/k8s-staging-gateway-api/admission-server:v0.6.2
59+
image: registry.k8s.io/gateway-api/admission-server:v0.7.0-rc1
6060
imagePullPolicy: Always
6161
args:
6262
- -logtostderr

hack/verify-examples-kind.sh

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ readonly GO111MODULE="on"
2222
readonly GOFLAGS="-mod=readonly"
2323
readonly GOPATH="$(mktemp -d)"
2424
readonly CLUSTER_NAME="verify-gateway-api"
25-
readonly ADMISSION_WEBHOOK_VERSION="v0.7.0-rc1"
25+
readonly LOCAL_IMAGE="registry.k8s.io/gateway-api/admission-server:latest"
2626

2727
export KUBECONFIG="${GOPATH}/.kubeconfig"
2828
export GOFLAGS GO111MODULE GOPATH
@@ -60,13 +60,24 @@ resources:
6060
- 0-namespace.yaml
6161
- certificate_config.yaml
6262
- admission_webhook.yaml
63-
images:
64-
- name: gcr.io/k8s-staging-gateway-api/admission-server:${ADMISSION_WEBHOOK_VERSION}
65-
newTag: latest
63+
patches:
64+
- patch: |-
65+
- op: replace
66+
path: /spec/template/spec/containers/0/image
67+
value: ${LOCAL_IMAGE}
68+
- op: replace
69+
path: /spec/template/spec/containers/0/imagePullPolicy
70+
value: IfNotPresent
71+
target:
72+
group: apps
73+
version: v1
74+
kind: Deployment
75+
name: gateway-api-admission-server
6676
EOF
6777

6878
# Install webhook
69-
docker build -t gcr.io/k8s-staging-gateway-api/admission-server:latest .
79+
docker build -t ${LOCAL_IMAGE} .
80+
kind load docker-image ${LOCAL_IMAGE} --name "${CLUSTER_NAME}"
7081
kubectl apply -k config/webhook/
7182

7283
# Wait for webhook to be ready

0 commit comments

Comments
 (0)