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
8 lines
294 B
Go
8 lines
294 B
Go
package internal
|
|
|
|
// MainPath stores the file path of the main package. On App Engine Standard
|
|
// using Go version 1.9 and below, this will be unset. On App Engine Flex and
|
|
// App Engine Standard second-gen (Go 1.11 and above), this will be the
|
|
// filepath to package main.
|
|
var MainPath string
|