Describe the bug
When the hub-agent is uninstalled via helm uninstall hub-agent the resources created from the install are removed. However resources that are created by the agent itself remains. In this specific case the ValidationWebhookConfiguration persists after helm uninstall. This results in blocking requests for resources specified in the configuration.
Environment
Please provide the following:
- Hub Cluster:
- Hub Agent Version >= 0.6.2
To Reproduce
- Install Hub-Agent via Helm
- Verify hub-agent pod exists via
kubectl get pods -n fleet-system
- Uninstall Hub-Agent via helm
- Reinstall Hub-Agent via Helm
- Verify hub-agent pod does not exist.
Expected behavior
The uninstall of the fleet hub-agent should also delete the fleet-validating-webhook-configuration.
Screenshots
