terraform-provider-flux
terraform-provider-flux copied to clipboard
fluxcd_bootstrap_git does not re-create flux-system secret
We've been using fluxcd and it works great, however now we're trying to rotate secrets and that seems to be broken with terraform.
According to the guide https://fluxcd.io/flux/installation/configuration/deploy-key-rotation/ we are supposed to:
- Delete secret in flux-system
- Re-run fluxcd bootstrap to re-create it
However when using terraform resource fluxcd_bootstrap_git, it does not detect that the secret was deleted and does not re-create it.
Steps to reproduce:
- run `kubectl delete secret flux-system -n flux-system
- Re-run terraform
- No changes, infrastructure up to date
Because of this, it makes it impossible to rotate keys for people using terraform to bootstrap fluxcd.