Documentation ¶
Index ¶
- func CreateObjectIfNotExist(ctx context.Context, c client.Client, source, newObject client.Object) (client.Object, error)
- func GetK8sResource(namespace, name string, obj client.Object) error
- func IsDeploymentReady(deployment *appsv1.Deployment) bool
- func IsObjectSpecEqual(objectA, objectB client.Object, annotationKey string) (bool, error)
- func IsStatefulSetReady(sts *appsv1.StatefulSet) bool
- func SourceObject(input client.Object) client.Object
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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.