gavinbunney / terraform-provider-kubectl

Terraform provider to handle raw kubernetes manifest yaml files
https://registry.terraform.io/providers/gavinbunney/kubectl
Mozilla Public License 2.0
609 stars 102 forks source link

Add provider option tls_server_name #277

Open ciiiii opened 10 months ago

ciiiii commented 10 months ago

Motivation

Support tls_server_name in provider configuration, same to https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs#tls_server_name

ciiiii commented 10 months ago

cc @gavinbunney

Asara commented 8 months ago

Anything we can do to get this merged? Currently unable to use the provider as I have an EKS cluster that is behind an ssm bastion host and I need to connect to it over localhost.

ciiiii commented 8 months ago

Anything we can do to get this merged? Currently unable to use the provider as I have an EKS cluster that is behind an ssm bastion host and I need to connect to it over localhost.

It seems that the author has been inactive on GitHub for some time, not sure if there're any reliable fork providers that are well-maintained.

ciiiii commented 8 months ago

@Asara FYI, I am currently generating a local kubeconfig as a temporary workaround to support tls_server_name.

alekc commented 8 months ago

Released in my form in 2.0.4-rc2 (https://github.com/alekc/terraform-provider-kubectl/releases) If you guys can provide feedback it would be great :)

terraform {
  required_providers {
    kubectl = {
      source = "alekc/kubectl"
      version = "2.0.4-rc2"
    }
  }
}
Asara commented 8 months ago

@alekc it works perfectly. Thanks so much!