kyma-incubator / terraform-provider-kind

Terraform Provider for kind (Kubernetes IN Docker)
Apache License 2.0
80 stars 44 forks source link

allow to pass kubeconfig #35

Closed tehcyx closed 4 years ago

tehcyx commented 4 years ago

This PR enables passing of kubeconfig_path in the terraform file. Feature from #34

Use like this:

provider "kind" {}

resource "kind_cluster" "default" {
    name = "test-cluster"
    kubeconfig_path = "/tmp/kind-provider-test/new_file"
}

Validation is not done via this provider. E.g. if path is not a file, kind itself will fail that it can't write the config to a file and the user has to take care of this themselves.

rally-bot commented 4 years ago

@tehcyx thanks a lot for putting this together! this does indeed cover off on being able to pass a custom kubeconfig path value for the --kubeconfig flag during cluster creation as requested in #34.