Skip to content

Commit b871994

Browse files
authored
Merge pull request #22 from appuio/fix/local-test-instructions
Fix instructions to run the controller and webhook locally
2 parents 0cbc015 + d889b29 commit b871994

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

README.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,24 @@ spec:
5858
externalName: 172.21.0.1 # Change to host IP
5959
EOF
6060
61-
kubctl apply -f ./config/webhook/manifests.yaml
61+
kubectl apply -f ./config/webhook/manifests.yaml
6262
6363
kubectl 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
```

0 commit comments

Comments
 (0)