k8s

package
v0.1.0-alpha.24 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateObjectIfNotExist

func CreateObjectIfNotExist(ctx context.Context, c client.Client, source, newObject client.Object) (client.Object, error)

CreateObjectIfNotExist creates Kubernetes object if it does not exist, otherwise returns the existing object.

func GetK8sResource

func GetK8sResource(namespace, name string, obj client.Object) error

GetK8sResource returns a native K8s resource by namespace and name.

func IsDeploymentReady

func IsDeploymentReady(deployment *appsv1.Deployment) bool

IsDeploymentReady checks if the deployment is ready.

func IsObjectSpecEqual

func IsObjectSpecEqual(objectA, objectB client.Object, annotationKey string) (bool, error)

IsObjectSpecEqual checks if the spec of the object is equal to other one.

func IsStatefulSetReady

func IsStatefulSetReady(sts *appsv1.StatefulSet) bool

IsStatefulSetReady checks if the statefulset is ready.

Types

This section is empty.

Jump to

Keyboard shortcuts

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