k3d/vendor/golang.org/x/net/proxy
iwilltry42 2a76bba98b
getKubeconfig: modify kubeconfig as an object
Before this change, we simply did a search/replace on the
stringified kubeconfig blob.
Now we're parsing it into a kubeconfig struct and modify the fields
directly in a more controlled manner.
Here's what we change:
- server URL: based on the chosen APIHost and APIPort
- cluster name: default -> k3d-CLUSTERNAME
- user name: default -> admin@k3d-CLUSTERNAME
- context name: default -> admin@k3d-CLUSTERNAME
2020-04-16 11:42:57 +02:00
..
dial.go getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
direct.go getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
per_host.go getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
proxy.go getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00
socks5.go getKubeconfig: modify kubeconfig as an object 2020-04-16 11:42:57 +02:00