k8sutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplyOption = metav1.ApplyOptions{
	FieldManager: "application/apply-patch",
}

Functions

func CrdDeserilezer

func CrdDeserilezer(logger *slog.Logger, reader io.ReadCloser) (runtime.Object, error)

func GetRestConfig

func GetRestConfig(kubeConfig string) (*rest.Config, error)

Types

type ClientSets

type ClientSets struct {
	KClient             kubernetes.Interface
	MClient             monitoringclient.Interface
	DClient             dynamic.Interface
	APIExtensionsClient apiExtensions.Interface
}

func GetClientSets

func GetClientSets(kubeconfig string) (*ClientSets, error)

Jump to

Keyboard shortcuts

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