sfserviceinstanceupdater

package
v0.0.0-...-1aaef2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 1 more Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SFServiceInstanceUpdater

type SFServiceInstanceUpdater struct {
	client.Client
	Log logr.Logger
}

SFServiceInstanceUpdater reconciles a SFServiceInstance object

func (*SFServiceInstanceUpdater) Reconcile

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL