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
626 stars 107 forks source link

Add provider option tls_server_name #277

Open ciiiii opened 1 year ago

ciiiii commented 1 year 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 1 year ago

cc @gavinbunney

Asara commented 11 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 11 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 11 months ago

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

alekc commented 11 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 11 months ago

@alekc it works perfectly. Thanks so much!