hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.51k stars 4.6k forks source link

Support for [prune] in kubernetes_flux_configuration #25849

Open vanhoutenbos opened 4 months ago

vanhoutenbos commented 4 months ago

Is there an existing issue for this?

Community Note

Hi,

Since a while Azure has added the option to 'prune' my flux configuration as you can sere here

Is it possible to add this to terraform as well, to this module; https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_flux_configuration

Description

Add prune support to kubernetes flux configuration

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

azurerm_kubernetes_flux_configuration

Potential Terraform Configuration

No response

References

No response

vanhoutenbos commented 4 months ago

Kindof like in https://github.com/hashicorp/terraform-provider-azurerm/issues/15011#issuecomment-2091746148

aristosvo commented 4 months ago

Hi @vanhoutenbos!

I think is is implemented as garbage_collection_enabled instead of prune.

Check also the code which translates it into prune

It should help probably to update the docs a bit in that regard 👍🏽

vanhoutenbos commented 4 months ago

This works! Thank you! If possible I can add the extra documentation as a MR/PR but I'm not sure where to start.

It would be nice to add the documentation for 'force' as well!

aristosvo commented 4 months ago

I can help you with that if you want?

The doc file can be found here.