Documentation ¶
Index ¶
Constants ¶
const ( // FullyAppliedSuccessReason defines the name for the FullyAppliedSuccess condition. FullyAppliedSuccessReason = "FullyAppliedSuccess" // FullyAppliedSuccessMessage defines the message for the FullyAppliedSuccess condition. FullyAppliedSuccessMessage = "All works have been successfully applied" )
const ClusterResourceBindingControllerName = "cluster-resource-binding-controller"
ClusterResourceBindingControllerName is the controller name that will be used when reporting events.
const ControllerName = "binding-controller"
ControllerName is the controller name that will be used when reporting events.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterResourceBindingController ¶ added in v0.4.0
type ClusterResourceBindingController struct { client.Client // used to operate ClusterResourceBinding resources. DynamicClient dynamic.Interface // used to fetch arbitrary resources from api server. InformerManager informermanager.SingleClusterInformerManager // used to fetch arbitrary resources from cache. EventRecorder record.EventRecorder RESTMapper meta.RESTMapper OverrideManager overridemanager.OverrideManager }
ClusterResourceBindingController is to sync ClusterResourceBinding.
func (*ClusterResourceBindingController) Reconcile ¶ added in v0.4.0
func (c *ClusterResourceBindingController) Reconcile(ctx context.Context, req controllerruntime.Request) (controllerruntime.Result, error)
Reconcile performs a full reconciliation for the object referred to by the Request. The Controller will requeue the Request to be processed again if an error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*ClusterResourceBindingController) SetupWithManager ¶ added in v0.4.0
func (c *ClusterResourceBindingController) SetupWithManager(mgr controllerruntime.Manager) error
SetupWithManager creates a controller and register to controller manager.
type ResourceBindingController ¶ added in v0.4.0
type ResourceBindingController struct { client.Client // used to operate ClusterResourceBinding resources. DynamicClient dynamic.Interface // used to fetch arbitrary resources from api server. InformerManager informermanager.SingleClusterInformerManager // used to fetch arbitrary resources from cache. EventRecorder record.EventRecorder RESTMapper meta.RESTMapper OverrideManager overridemanager.OverrideManager }
ResourceBindingController is to sync ResourceBinding.
func (*ResourceBindingController) Reconcile ¶ added in v0.4.0
func (c *ResourceBindingController) Reconcile(ctx context.Context, req controllerruntime.Request) (controllerruntime.Result, error)
Reconcile performs a full reconciliation for the object referred to by the Request. The Controller will requeue the Request to be processed again if an error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*ResourceBindingController) SetupWithManager ¶ added in v0.4.0
func (c *ResourceBindingController) SetupWithManager(mgr controllerruntime.Manager) error
SetupWithManager creates a controller and register to controller manager.