Closed
Description
I'm using version 0.3.1.
I haven't investigated this completely, but I was setting kubeconfig_raw
in the provider, which was invalid in some way (I believe), and it seemed like the plugin fell back to the default context in my local ~/.kube/config
.
This seems contrary to the docs, which state
If kubeconfig_raw is set, kubeconfig_path is ignored.
And it's also potentially highly dangerous to use an unexpected kubeconfig.
terraform-provider-kustomization/kustomize/provider.go
Lines 83 to 95 in 2341cf8
I fixed my config, but would like:
- any error using kubeconfig_raw should be logged
- if kubeconfig_raw was set but failed, it should not fallback to kubeconfig_path
- any error using kubeconfig_path should be logged
- perhaps the docs should suggest specifying a non-default context to prevent accidentally using the wrong kubeconfig
Metadata
Metadata
Assignees
Labels
No labels