Documentation ¶
Index ¶
- func CreateObject(clientset *kubernetes.Clientset, ...) (string, string, error)
- func DeleteObject(clientset *kubernetes.Clientset, ...) (string, string, error)
- func GetDeployments(clientset *kubernetes.Clientset, namespace string, labelSelector string) (*appsv1.DeploymentList, error)
- func UpdateDeployment(clientset *kubernetes.Clientset, deployment *v1api.Deployment, ...) (*v1api.Deployment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateObject ¶
func CreateObject(clientset *kubernetes.Clientset, apiextensionsClientSet *apixv1beta1client.ApiextensionsV1beta1Client, obj runtime.Object, namespace string) (string, string, error)
CreateObject - creates kubernetes object from *runtime.Object. Returns object name, kind and creation error
func DeleteObject ¶
func DeleteObject(clientset *kubernetes.Clientset, apiextensionsClientSet *apixv1beta1client.ApiextensionsV1beta1Client, obj runtime.Object, namespace string) (string, string, error)
DeleteObject - checks kubernetes object from *runtime.Object. Returns object name, kind and creation error
func GetDeployments ¶
func GetDeployments(clientset *kubernetes.Clientset, namespace string, labelSelector string) (*appsv1.DeploymentList, error)
func UpdateDeployment ¶
func UpdateDeployment(clientset *kubernetes.Clientset, deployment *v1api.Deployment, namespace string) (*v1api.Deployment, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.