Documentation ¶
Index ¶
Constants ¶
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 ¶
func RecordAppliedOverrides ¶ added in v1.3.0
func RecordAppliedOverrides(cops *overridemanager.AppliedOverrides, ops *overridemanager.AppliedOverrides, annotations map[string]string) (map[string]string, error)
RecordAppliedOverrides record applied (cluster) overrides to annotations
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 genericmanager.SingleClusterInformerManager // used to fetch arbitrary resources from cache. EventRecorder record.EventRecorder RESTMapper meta.RESTMapper OverrideManager overridemanager.OverrideManager ResourceInterpreter resourceinterpreter.ResourceInterpreter RateLimiterOptions ratelimiterflag.Options }
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 genericmanager.SingleClusterInformerManager // used to fetch arbitrary resources from cache. EventRecorder record.EventRecorder RESTMapper meta.RESTMapper OverrideManager overridemanager.OverrideManager ResourceInterpreter resourceinterpreter.ResourceInterpreter RateLimiterOptions ratelimiterflag.Options }
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.