kubeconfig

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultKubeconfig

func DefaultKubeconfig() string

DefaultKubeconfig load default kube config

func Kubeconfig

func Kubeconfig(clusterInfo *ClusterInfo) (cfg *rest.Config, err error)

Kubeconfig new kube config

Types

type ClusterConfig added in v1.2.0

type ClusterConfig struct {
	at.Scope              `value:"prototype"`
	at.ConditionalOnField `value:"Name,Username"`

	ClusterInfo
}

type ClusterInfo added in v1.2.0

type ClusterInfo struct {
	Name     string `json:"name"`
	Username string `json:"username"`
	Config   string `json:"config"`
}

type RuntimeClusterConfig added in v1.2.0

type RuntimeClusterConfig struct {
	at.Scope              `value:"request"`
	at.ConditionalOnField `value:"Name,Username"`

	ClusterInfo
	Username string `value:"username"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL