Documentation ¶
Index ¶
- func GetClient(cfg *rest.Config) client.Client
- func GetClientSet() *kubernetes.Clientset
- type K8sClient
- func (c *K8sClient) CreateNamespace(namespaceName string) error
- func (c *K8sClient) CreateNamespaces(namespaceNames []string) error
- func (c *K8sClient) GetClusterNamespace(namespaceName string) (*corev1.Namespace, error)
- func (c *K8sClient) ListClusterNameSpaces() (*corev1.NamespaceList, error)
- func (c *K8sClient) UpdateNamespace(namespace *corev1.Namespace) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type K8sClient ¶
func NewK8sClient ¶
func NewK8sClient() *K8sClient
func (*K8sClient) CreateNamespace ¶
Creates a Namespace
func (*K8sClient) CreateNamespaces ¶
Creates a namespace if it does not exist
func (*K8sClient) GetClusterNamespace ¶
Retrieve corev1.Namespace from cluster
func (*K8sClient) ListClusterNameSpaces ¶
func (c *K8sClient) ListClusterNameSpaces() (*corev1.NamespaceList, error)
List namespaces currently in cluster. Exit if we can't.
Click to show internal directories.
Click to hide internal directories.