Documentation ¶
Index ¶
- func CurrentContext() (string, error)
- func DeleteContext(contextName string) error
- func ManagementContextName() string
- func ParseContext(contextName string) (isLoftContext bool, cluster string, namespace string, vCluster string)
- func PrintKubeConfigTo(options ContextOptions, writer io.Writer) error
- func PrintTokenKubeConfig(restConfig *rest.Config, token string) error
- func SpaceContextName(clusterName, namespaceName string) string
- func SpaceInstanceContextName(projectName, spaceInstanceName string) string
- func UpdateKubeConfig(options ContextOptions) error
- func VirtualClusterContextName(clusterName, namespaceName, virtualClusterName string) string
- func VirtualClusterInstanceContextName(projectName, virtualClusterInstance string) string
- func WriteTokenKubeConfig(restConfig *rest.Config, token string, w io.Writer) error
- type ContextOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentContext ¶
func DeleteContext ¶
DeleteContext deletes the context with the given name from the kube config
func ManagementContextName ¶
func ManagementContextName() string
func ParseContext ¶
func PrintKubeConfigTo ¶
func PrintKubeConfigTo(options ContextOptions, writer io.Writer) error
PrintKubeConfigTo prints the given config to the writer
func PrintTokenKubeConfig ¶
PrintTokenKubeConfig writes the kube config to the os.Stdout
func SpaceContextName ¶
func UpdateKubeConfig ¶
func UpdateKubeConfig(options ContextOptions) error
UpdateKubeConfig updates the kube config and adds the virtual cluster context
Types ¶
type ContextOptions ¶
Click to show internal directories.
Click to hide internal directories.