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
12 lines
295 B
Modula-2
12 lines
295 B
Modula-2
module github.com/json-iterator/go
|
|
|
|
go 1.12
|
|
|
|
require (
|
|
github.com/davecgh/go-spew v1.1.1
|
|
github.com/google/gofuzz v1.0.0
|
|
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421
|
|
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742
|
|
github.com/stretchr/testify v1.3.0
|
|
)
|