Skip to content

Commit

Permalink
Merge pull request #1987 from robscott/v0.7.0-rc1-webhook
Browse files Browse the repository at this point in the history
Bumping webhook version to v0.7.0-rc1
  • Loading branch information
k8s-ci-robot authored May 1, 2023
2 parents 809491a + ecbcc6f commit c67f3fd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/webhook/admission_webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
spec:
containers:
- name: webhook
image: gcr.io/k8s-staging-gateway-api/admission-server:v0.6.2
image: registry.k8s.io/gateway-api/admission-server:v0.7.0-rc1
imagePullPolicy: Always
args:
- -logtostderr
Expand Down
21 changes: 16 additions & 5 deletions hack/verify-examples-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ readonly GO111MODULE="on"
readonly GOFLAGS="-mod=readonly"
readonly GOPATH="$(mktemp -d)"
readonly CLUSTER_NAME="verify-gateway-api"
readonly ADMISSION_WEBHOOK_VERSION="v0.7.0-rc1"
readonly LOCAL_IMAGE="registry.k8s.io/gateway-api/admission-server:latest"

export KUBECONFIG="${GOPATH}/.kubeconfig"
export GOFLAGS GO111MODULE GOPATH
Expand Down Expand Up @@ -60,13 +60,24 @@ resources:
- 0-namespace.yaml
- certificate_config.yaml
- admission_webhook.yaml
images:
- name: gcr.io/k8s-staging-gateway-api/admission-server:${ADMISSION_WEBHOOK_VERSION}
newTag: latest
patches:
- patch: |-
- op: replace
path: /spec/template/spec/containers/0/image
value: ${LOCAL_IMAGE}
- op: replace
path: /spec/template/spec/containers/0/imagePullPolicy
value: IfNotPresent
target:
group: apps
version: v1
kind: Deployment
name: gateway-api-admission-server
EOF

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

# Wait for webhook to be ready
Expand Down

0 comments on commit c67f3fd

Please sign in to comment.