Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
Let the kubeconfig attribute return the external kubeconfig fix #20 (#21
Browse files Browse the repository at this point in the history
)

KinD has an internal and an external kubeconfig. With this commit,
the kubeconfig returned as an attribute of the kind_cluster resource
will have the external kubeconfig, the same as written to the file
using provider.ExportKubeConfig, which always returns the external
config.
  • Loading branch information
pst authored Sep 8, 2020
1 parent 144cd52 commit b9f86ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kind/resource_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func resourceKindClusterRead(d *schema.ResourceData, meta interface{}) error {
id := d.Id()
log.Printf("ID: %s\n", id)

kconfig, err := provider.KubeConfig(name, true)
kconfig, err := provider.KubeConfig(name, false)
if err != nil {
d.SetId("")
return err
Expand Down

0 comments on commit b9f86ca

Please sign in to comment.