func NewOperationHandler()

in internal/handler/operation.go [43:57]


func NewOperationHandler(ctx context.Context, operation *v1alpha1.Operation, logger logr.Logger, client client.Client, recorder record.EventRecorder) OperationHandlerInterface {
	if operationHandler, ok := ctx.Value(OperationContextKey{}).(OperationHandlerInterface); ok {
		return operationHandler
	}

	return &OperationHandler{
		operation: operation,
		logger:    logger,
		client:    client,
		recorder:  recorder,

		apdutils: ctrlutils.NewAppDeploymentHelper(),
		oputils:  ctrlutils.NewOperationHelper(),
	}
}