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

Add cluster extensions argument to the provider configuration

Open tchelovilar opened this issue 8 months ago • 0 comments

Description

Add cluster extensions argument to the provider enabling to pass additional configuration to the exec plugin.

Potential Terraform Configuration

provider "kubernetes" {
  host                   = "https://..."
  cluster_ca_certificate = "AAA"
  cluster_extensions = [
    {
      name = "client.authentication.k8s.io/exec"
      extension = {
        arbitrary = "config"
        project   = "123"
        cluster   = "k8s"
      }
    }
  ]
  exec {
    provide_cluster_info = true
    api_version          = "client.authentication.k8s.io/v1"
    command              = "cli"
    args                 = ["get", "token"]
  }
}

References

Kubernetes authentication reference: https://kubernetes.io/docs/reference/access-authn-authz/authentication/#configuration

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

tchelovilar avatar May 28 '24 10:05 tchelovilar