Documentation
¶
Index ¶
- func GetReplicaSetEventHandlerForObj(mgr ctrl.Manager, objKind string) handler.EventHandler
- func LogAndUpdateStatusError[O ObjectWithStatus](ctx context.Context, k8sClient client.Client, obj O, err error)
- func LogAndUpdateStatusFinished[O ObjectWithStatus](ctx context.Context, k8sClient client.Client, obj O, ...)
- type ObjectWithStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReplicaSetEventHandlerForObj ¶
func GetReplicaSetEventHandlerForObj(mgr ctrl.Manager, objKind string) handler.EventHandler
GetReplicaSetEventHandlerForObj returns an event handler that only triggers a reconcile if a ReplicaSet is owned by obj through a Deployment, in other words the replicaset is a grandchild of obj
func LogAndUpdateStatusError ¶
func LogAndUpdateStatusFinished ¶
func LogAndUpdateStatusFinished[O ObjectWithStatus](ctx context.Context, k8sClient client.Client, obj O, operationResults map[string]controllerutil.OperationResult)
Types ¶
type ObjectWithStatus ¶
type ObjectWithStatus interface {
client.Object
OperatorStatus() *model.OperatorStatus
}
Click to show internal directories.
Click to hide internal directories.