kubernetes

package
Version: v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 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.

Source Files

Jump to

Keyboard shortcuts

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