kubeobj

package
v0.0.0-...-2798f75 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 15 Imported by: 1

Documentation

Index

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.

Jump to

Keyboard shortcuts

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