namespaces

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(name, gitOpsRepoURL string) *corev1.Namespace

Create creates a Namespace value from a string.

func Exists

func Exists(clientSet kubernetes.Interface, name string) (bool, error)

Exists returns true if the given namespace exists

func GetClientSet

func GetClientSet() (*kubernetes.Clientset, error)

GetClientSet creates and returns a new Kubernetes clientset.

func NamesWithPrefix

func NamesWithPrefix(prefix string) map[string]string

NamesWithPrefix returns namespaces of all environments based on the prefix, and using the set of predefined names: dev, stage, cicd.

func Namespaces

func Namespaces(names []string, gitOpsRepoURL string) []*corev1.Namespace

Namespaces create namespaces for the given names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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