Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SFServiceInstanceUpdater ¶
SFServiceInstanceUpdater reconciles a SFServiceInstance object
func (*SFServiceInstanceUpdater) Reconcile ¶
func (r *SFServiceInstanceUpdater) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile triggers updation of the SFServiceInstances for changes in SFPlan.spec. It filters out already updated SFServiceInstance by matching the planhash stored in the annotation of the SFServiceInstance.
After triggering update on all the selected SFServiceInstance, the SFPlan.Status.SpecHash is upated with the new checksum of SFPlan.spec. If update failed for any of the SFServiceInstance, the SFPlan.Status.SpecHash is not updated. Thus failure can be identified by the difference in SFPlan.annotations.planhash and SFPlan.Status.SpecHash. The failed ones are reconciled again after some time.
func (*SFServiceInstanceUpdater) SetupWithManager ¶
func (r *SFServiceInstanceUpdater) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager should be called if the controller is to be initialized.