Documentation ¶
Index ¶
- func Create(name, gitOpsRepoURL string) *corev1.Namespace
- func Exists(clientSet kubernetes.Interface, name string) (bool, error)
- func GetClientSet() (*kubernetes.Clientset, error)
- func NamesWithPrefix(prefix string) map[string]string
- func Namespaces(names []string, gitOpsRepoURL string) []*corev1.Namespace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
NamesWithPrefix returns namespaces of all environments based on the prefix, and using the set of predefined names: dev, stage, cicd.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.