kubeconfig

package
v0.21.0-beta.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteContext

func DeleteContext(contextName string) error

DeleteContext deletes the context with the given name from the kube config

func ManagementContextName

func ManagementContextName() string

func PrintKubeConfigTo

func PrintKubeConfigTo(options ContextOptions, writer io.Writer) error

PrintKubeConfigTo prints the given config to the writer

func SpaceContextName

func SpaceContextName(clusterName, namespaceName string) string

func SpaceInstanceContextName

func SpaceInstanceContextName(projectName, spaceInstanceName string) string

func UpdateKubeConfig

func UpdateKubeConfig(options ContextOptions, cfg *config.CLI) error

UpdateKubeConfig updates the kube config and adds the virtual cluster context

func VirtualClusterInstanceContextName

func VirtualClusterInstanceContextName(projectName, virtualClusterInstance string) string

Types

type ContextOptions

type ContextOptions struct {
	Name                  string
	Server                string
	CaData                []byte
	ConfigPath            string
	InsecureSkipTLSVerify bool

	Token string

	CurrentNamespace string
	SetActive        bool
}

Jump to

Keyboard shortcuts

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