hashicorp / consul-k8s

First-class support for Consul Service Mesh on Kubernetes
https://www.consul.io/docs/k8s
Mozilla Public License 2.0
660 stars 316 forks source link

Kubernetes secrets are not deleted after helm uninstall #3484

Open Conacious opened 5 months ago

Conacious commented 5 months ago

Community Note


Overview of the Issue

When deploying consul using the helm chart and acl:manageSystemACLs = true a secret is created in Kubernetes with the name ${name}-bootstrap-acl-token. The problem comes when you uninstall the helm chart that the secret is not deleted.

Reproduction Steps

  1. Deploy consul using this helm chart and acl:manageSystemACLs = true to create the bootstrap secret.
  2. Execute helm uninstall and delete the chart.
  3. Notice that the secret is not deleted.

Expected behavior

The secret is deleted after helm uninstall.

Environment details