namespace

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Clientset to be synced by the custom resources

Functions

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