File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed
Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -58,21 +58,24 @@ spec:
5858 externalName: 172.21.0.1 # Change to host IP
5959EOF
6060
61- kubctl apply -f ./config/webhook/manifests.yaml
61+ kubectl apply -f ./config/webhook/manifests.yaml
6262
6363kubectl patch validatingwebhookconfiguration validating-webhook-configuration \
64- -p '{
65- "webhooks": [
66- {
67- "name": "validate-users.appuio.io",
68- "clientConfig": {
69- "caBundle": "'"$(base64 -w0 "./local-env/webhook-certs/tls.crt)"'",
70- "service": {
71- "namespace": "default",
72- "port": 9443
73- }
74- }
75- }
76- ]
77- }'
64+ --type=json -p '[
65+ {
66+ "op": "add",
67+ "path": "/webhooks/0/clientConfig/caBundle",
68+ "value": "'"$(base64 -w0 ./webhook-certs/tls.crt)"'"
69+ },
70+ {
71+ "op": "replace",
72+ "path": "/webhooks/0/clientConfig/service/namespace",
73+ "value": "default"
74+ },
75+ {
76+ "op": "replace",
77+ "path": "/webhooks/0/clientConfig/service/port",
78+ "value": 9443
79+ }
80+ ]'
7881```
You can’t perform that action at this time.
0 commit comments