Documentation
¶
Index ¶
- Variables
- func GetConfigAccess(explicitPath string) clientcmd.ConfigAccess
- func GetRemoteKubeconfig(ctx context.Context, sp *specs.Specs, sshKeyPath string, ...) (string, error)
- func Merge(existing *clientcmdapi.Config, tomerge *clientcmdapi.Config) *clientcmdapi.Config
- func RenameConfig(sp *specs.Specs, newConfig *clientcmdapi.Config)
- func Sanitize(configStr string, params Params) (string, error)
- func Write(path string, newConfig clientcmdapi.Config, setContext bool) (string, error)
- type Params
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClusterAdminName = "kubernetes-admin"
View Source
var DefaultClusterName = "kubernetes"
View Source
var DefaultContextName = fmt.Sprintf("%s@%s", DefaultClusterAdminName, DefaultClusterName)
View Source
var DefaultPath = clientcmd.RecommendedHomeFile
DefaultPath defines the default path
Functions ¶
func GetConfigAccess ¶
func GetConfigAccess(explicitPath string) clientcmd.ConfigAccess
func GetRemoteKubeconfig ¶
func GetRemoteKubeconfig(ctx context.Context, sp *specs.Specs, sshKeyPath string, verbose, skipTLSVerify bool) (string, error)
GetRemoteKubeconfig retrieves Kubernetes configuration from a master node of the cluster
func Merge ¶
func Merge(existing *clientcmdapi.Config, tomerge *clientcmdapi.Config) *clientcmdapi.Config
Merge two kubeconfig objects
func RenameConfig ¶
func RenameConfig(sp *specs.Specs, newConfig *clientcmdapi.Config)
RenameConfig renames the default cluster and context names to the values from cluster.yaml
Types ¶
Click to show internal directories.
Click to hide internal directories.