fluxcd / terraform-provider-flux

Terraform and OpenTofu provider for bootstrapping Flux
https://registry.terraform.io/providers/fluxcd/flux/latest
Apache License 2.0
336 stars 89 forks source link

[Enhancement]: Optionally delete manifests from Git on "terraform destroy" #649

Closed swade1987 closed 1 month ago

swade1987 commented 1 month ago

Description

Users may want to avoid removing the manifests from Git when running terraform destroy for the flux_bootstrap_git resource. This would default to true to maintain the same default behaviour.

Affected Resource(s) and/or Data Source(s)

flux_bootstrap_git

Potential Terraform Configuration

resource "flux_bootstrap_git" "this" {
  ...
  delete_manifests = false
}

References

No response

Would you like to implement a fix?

Yes