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
238 B
Go
12 lines
238 B
Go
// Copyright 2018 Google LLC. All rights reserved.
|
|
// Use of this source code is governed by the Apache 2.0
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build appenginevm
|
|
|
|
package internal
|
|
|
|
func init() {
|
|
appengineFlex = true
|
|
}
|