Skip to content

Commit bd4aefc

Browse files
author
Andi Li
committed
Documentation changes
1. Fix build command 2. Use the k8s gcr.io repo
1 parent fe8bb2d commit bd4aefc

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

deploy/kubernetes/webhook-example/README.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ make
2323
Build the docker image
2424

2525
```bash
26-
docker build -t gcr.io/your-project-name/webhook:latest -f ./cmd/webhook/Dockerfile .
27-
```
28-
29-
Push the docker image to the remote registry
30-
31-
```bash
32-
docker push gcr.io/your-project-name/webhook:latest
26+
docker build -t validation-webhook:latest -f ./cmd/validation-webhook/Dockerfile .
3327
```
3428

3529
## How to deploy the webhook

deploy/kubernetes/webhook-example/webhook.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
spec:
1818
containers:
1919
- name: snapshot-validation
20-
image: gcr.io/your-project-name/validation-webhook:latest # change the image if you wish to use your own custom validation server image
20+
image: k8s.gcr.io/sig-storage/validation-webhook:v2.2.0 # change the image if you wish to use your own custom validation server image
2121
args: ['--tls-cert-file=/etc/snapshot-validation-webhook/certs/cert.pem', '--tls-private-key-file=/etc/snapshot-validation-webhook/certs/key.pem']
2222
ports:
2323
- containerPort: 443 # change the port as needed

0 commit comments

Comments
 (0)