operator

package
v1.14.7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKarmadaInstance

func CreateKarmadaInstance(operatorClient operator.Interface, karmada *operatorv1alpha1.Karmada) error

CreateKarmadaInstance creates a karmada instance.

func GetLastTransitionTime

func GetLastTransitionTime(karmada *operatorv1alpha1.Karmada, conditionType operatorv1alpha1.ConditionType) time.Time

GetLastTransitionTime gets the last transition time of the condition, return time.Now() if not found.

func UpdateKarmadaInstanceWithSpec

func UpdateKarmadaInstanceWithSpec(client operator.Interface, namespace, name string, karmadaSpec operatorv1alpha1.KarmadaSpec)

UpdateKarmadaInstanceWithSpec updates karmada instance with spec.

func WaitKarmadaReady

func WaitKarmadaReady(client operator.Interface, namespace, name string, lastTransitionTime time.Time)

WaitKarmadaReady wait karmada instance ready until timeout. Since the karmada-operator updates the `karmada.spec` first and then the `karmada.status`, in order to ensure that the `ready` condition indicates that the `karmada.spec` has been applied correctly, it will check the `lastTransitionTime` of the `ready` condition.

Types

This section is empty.

Jump to

Keyboard shortcuts

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