File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ readonly GO111MODULE="on"
2222readonly GOFLAGS=" -mod=readonly"
2323readonly GOPATH=" $( mktemp -d) "
2424readonly 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
2727export KUBECONFIG=" ${GOPATH} /.kubeconfig"
2828export 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
6676EOF
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} "
7081kubectl apply -k config/webhook/
7182
7283# Wait for webhook to be ready
You can’t perform that action at this time.
0 commit comments