Documentation ¶
Index ¶
- func GetWorkspaceOwnerName(ownerReferences []metav1.OwnerReference) string
- func IsControlledBy(ownerReferences []metav1.OwnerReference, kind string, name string) bool
- func LoadKubeConfigFromBytes(kubeconfig []byte) (*rest.Config, error)
- func RemoveWorkspaceOwnerReference(ownerReferences []metav1.OwnerReference) []metav1.OwnerReference
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.