terraform-provider-flux icon indicating copy to clipboard operation
terraform-provider-flux copied to clipboard

[Enhancement]: Allow provider to use environment variables for kube configuration like k8s/helm terraform provider

Open swade1987 opened this issue 2 months ago • 1 comments

Description

Many people using the flux provider also use the Kubernetes and Helm terraform providers.

Both these providers allow you to pass Kubernetes configuration via environment variables.

Therefore, the flux provider should additionally allow this to maintain alignment.

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

N/A

Potential Terraform Configuration

No response

References

The majority of the discussion has happened in https://github.com/fluxcd/terraform-provider-flux/issues/440

Would you like to implement a fix?

Yes

swade1987 avatar Apr 12 '24 09:04 swade1987

From @networkhermit

I managed to verify that https://github.com/fluxcd/terraform-provider-flux/pull/506 added support for KUBE_CONFIG_PATH and KUBE_CONFIG_PATH support since v1.0.0. But the other options such as KUBE_CLIENT_CERT_DATA/KUBE_CLIENT_KEY_DATA/KUBE_CLUSTER_CA_CERT_DATA/KUBE_HOST still not supported.

swade1987 avatar Apr 12 '24 15:04 swade1987