Documentation
¶
Index ¶
- func CreateKarmadaInstance(operatorClient operator.Interface, karmada *operatorv1alpha1.Karmada) error
- func DeleteKarmadaInstance(client operator.Interface, namespace, name string)
- func GetLastTransitionTime(karmada *operatorv1alpha1.Karmada, ...) time.Time
- func UpdateKarmadaInstanceWithSpec(client operator.Interface, namespace, name string, ...)
- func WaitKarmadaReady(client operator.Interface, namespace, name string, ...)
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 DeleteKarmadaInstance ¶ added in v1.17.0
DeleteKarmadaInstance deletes a karmada instance and ignores not found error.
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.
Click to show internal directories.
Click to hide internal directories.