Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ReconcilePolicyAnnotation is the annotation key for ASO's reconcile policy mechanism. ReconcilePolicyAnnotation = "serviceoperator.azure.com/reconcile-policy" // ReconcilePolicySkip indicates changes will not be PUT or DELETEd in Azure from ASO. ReconcilePolicySkip = "skip" // ReconcilePolicyManage indicates changes will be PUT and DELETEd in Azure from ASO. ReconcilePolicyManage = "manage" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reconciler ¶
type Reconciler interface { CreateOrUpdateResource(ctx context.Context, spec azure.ASOResourceSpecGetter, serviceName string) (result genruntime.MetaObject, err error) DeleteResource(ctx context.Context, spec azure.ASOResourceSpecGetter, serviceName string) (err error) }
Reconciler is a generic interface used to perform reconciliation of Azure resources backed by ASO.
type Service ¶
Service is an implementation of the Reconciler interface. It handles creation and deletion of resources using ASO.
func (*Service) CreateOrUpdateResource ¶
func (s *Service) CreateOrUpdateResource(ctx context.Context, spec azure.ASOResourceSpecGetter, serviceName string) (result genruntime.MetaObject, err error)
CreateOrUpdateResource implements the logic for creating a new or updating an existing resource with ASO.
func (*Service) DeleteResource ¶
func (s *Service) DeleteResource(ctx context.Context, spec azure.ASOResourceSpecGetter, serviceName string) (err error)
DeleteResource implements the logic for deleting a resource Asynchronously.
Click to show internal directories.
Click to hide internal directories.