kubernetes

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const Owner = "spotctl"

Variables

This section is empty.

Functions

func DoServerSideApply

func DoServerSideApply(ctx context.Context, cfg *rest.Config, content string) error

func EnsureNamespace added in v0.22.0

func EnsureNamespace(ctx context.Context, client kubernetes.Interface, name string) error

EnsureNamespace checks for the existence of a namespace with the given name. If the namespace does not exist, it is created.

func GetClient added in v0.22.0

func GetClient(config *rest.Config) (kubernetes.Interface, error)

func GetConfig added in v0.22.0

func GetConfig(kubeConfigPath string) (*rest.Config, error)

func GetDefaultKubeConfigPath added in v0.22.0

func GetDefaultKubeConfigPath() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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