kubeutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyNamespace

func ApplyNamespace(ctx context.Context, c *rest.Config, namespace string) (*corev1.Namespace, error)

func GetConfig

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

func KubeConfigFromClient

func KubeConfigFromClient(c client.Client) *rest.Config

func NewClient

func NewClient(kubeConfigPath string) (client.Client, error)

Types

type CustomResourceDefinition

type CustomResourceDefinition struct {
	GroupVersion schema.GroupVersion
	KindType     runtime.Object
	ListKindType runtime.Object
	Plural       string
	ShortNames   []string
}

type Object

type Object = client.Object

func NewForGroupVersionKind

func NewForGroupVersionKind(gvk schema.GroupVersionKind) (Object, error)

func ObjectFromRuntimeObject

func ObjectFromRuntimeObject(ro runtime.Object) (Object, error)

type ObjectList

type ObjectList = client.ObjectList

func ObjectListFromRuntimeObject

func ObjectListFromRuntimeObject(ro runtime.Object) (ObjectList, error)

Jump to

Keyboard shortcuts

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