namespace

package
v1.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Clientset to be synced by the custom resources

View Source
var EdgenetClientset clientset.Interface

Functions

func EligibilityCheck

func EligibilityCheck(objName string, objNamespace string) bool

EligibilityCheck checks whether namespace, in which role request made, is local to the cluster or is propagated along with a federated deployment. If another cluster propagates the namespace, we skip checking the owner tenant's status as the Selective Deployment entity manages this life-cycle.

func GetNamespace

func GetNamespace(name string) (*corev1.Namespace, error)

GetNamespace uses clientset to get namespace requested

func List

func List() []string

List uses clientset, this function provides the list of namespaces by eliminating "default", "kube-system", and "kube-public"

func SetAsOwnerReference

func SetAsOwnerReference(namespace *corev1.Namespace) []metav1.OwnerReference

SetAsOwnerReference returns the namespace as owner

Types

This section is empty.

Jump to

Keyboard shortcuts

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