Skip to content

Commit

Permalink
Merge pull request #22 from appuio/fix/local-test-instructions
Browse files Browse the repository at this point in the history
Fix instructions to run the controller and webhook locally
  • Loading branch information
simu authored May 6, 2022
2 parents 0cbc015 + d889b29 commit b871994
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,24 @@ spec:
externalName: 172.21.0.1 # Change to host IP
EOF
kubctl apply -f ./config/webhook/manifests.yaml
kubectl apply -f ./config/webhook/manifests.yaml
kubectl patch validatingwebhookconfiguration validating-webhook-configuration \
-p '{
"webhooks": [
{
"name": "validate-users.appuio.io",
"clientConfig": {
"caBundle": "'"$(base64 -w0 "./local-env/webhook-certs/tls.crt)"'",
"service": {
"namespace": "default",
"port": 9443
}
}
}
]
}'
--type=json -p '[
{
"op": "add",
"path": "/webhooks/0/clientConfig/caBundle",
"value": "'"$(base64 -w0 ./webhook-certs/tls.crt)"'"
},
{
"op": "replace",
"path": "/webhooks/0/clientConfig/service/namespace",
"value": "default"
},
{
"op": "replace",
"path": "/webhooks/0/clientConfig/service/port",
"value": 9443
}
]'
```

0 comments on commit b871994

Please sign in to comment.