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.52k stars 4.6k forks source link

Support for Extra/Optional Components #26142

Open ascdi opened 3 months ago

ascdi commented 3 months ago

Is there an existing issue for this?

Community Note

Description

I am using azurerm_kubernetes_flux_configuration to install flux on my AKS.

I want to use ImageRepository and ImagePolicy but those are optional/extra components for flux. I do not find anything in the documentation to install those using this provider.

Can we add this? The fluxcd/flux provider already supports this: fluxcd/flux fbootstrap_git > components_extra

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

azurerm_kubernetes_flux_configuration

Potential Terraform Configuration

resource "azurerm_kubernetes_flux_configuration" "main" {

  optional_components = [
    "image-reflector-controller",
    "image-automation-controller"
  ]
  // ...
}

References

No response

ms-henglu commented 3 months ago

Hi @ascdi ,

Thank you for taking time to report this issue.

It seems that this feature is not supported by the API yet. So we couldn't support it in the azurerm provider.