Closed Neumann-Nils closed 4 years ago
How to test that the webhook is upgraded with helm upgrade
:
kubectl create namespace karydia
helm install karydia ./install/charts --namespace karydia
kubectl describe MutatingWebhookConfiguration karydia-webhook
kubectl describe ValidatingWebhookConfiguration karydia-webhook
[...] Namespace Selector: Match Expressions: Key: app Operator: NotIn Values: karydia [...]
3. Make changes to e.g. the `values.yaml` file:
```diff
exclusionNamespaceLabels:
- - key: "app"
- values:
- - "karydia"
+ - key: "exclude"
+ values:
+ - "true"
kubectl describe MutatingWebhookConfiguration karydia-webhook
kubectl describe ValidatingWebhookConfiguration karydia-webhook
[...] Namespace Selector: Match Expressions: Key: exclude Operator: NotIn Values: true [...]
Description
This PR reapplies the webhook installation script after an upgrade (not just an install). This allows it to make changes to the webhook without deleting and installing Karydia, but rather just upgrading it.
Checklist
Before submitting this PR, please make sure:
make
make test