k8sutil

package
v0.0.0-...-e779149 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWorkspaceOwnerName

func GetWorkspaceOwnerName(ownerReferences []metav1.OwnerReference) string

GetWorkspaceOwnerName return workspace kind owner name

func IsControlledBy

func IsControlledBy(ownerReferences []metav1.OwnerReference, kind string, name string) bool

IsControlledBy returns whether the ownerReferences contains the specified resource kind

func LoadKubeConfigFromBytes

func LoadKubeConfigFromBytes(kubeconfig []byte) (*rest.Config, error)

LoadKubeConfigFromBytes parses the kubeconfig yaml data to the rest.Config struct.

func RemoveWorkspaceOwnerReference

func RemoveWorkspaceOwnerReference(ownerReferences []metav1.OwnerReference) []metav1.OwnerReference

RemoveWorkspaceOwnerReference remove workspace kind owner reference

Types

This section is empty.

Jump to

Keyboard shortcuts

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