Documentation ¶
Index ¶
- Constants
- func MarkReconciliationStarted(client client.Client, resource mdbv1.AtlasCustomResource, ...) *workflow.Context
- func PrepareResource(client client.Client, request reconcile.Request, ...) workflow.Result
- func ReconciliationShouldBeSkipped(resource mdbv1.AtlasCustomResource) bool
- func ResourceShouldBeLeftInAtlas(resource mdbv1.AtlasCustomResource) bool
Constants ¶
View Source
const ( ResourcePolicyAnnotation = "mongodb.com/atlas-resource-policy" ReconciliationPolicyAnnotation = "mongodb.com/atlas-reconciliation-policy" ResourcePolicyKeep = "keep" ReconciliationPolicySkip = "skip" )
Variables ¶
This section is empty.
Functions ¶
func MarkReconciliationStarted ¶
func MarkReconciliationStarted(client client.Client, resource mdbv1.AtlasCustomResource, log *zap.SugaredLogger) *workflow.Context
MarkReconciliationStarted updates the status of the Atlas Resource to indicate that the Operator has started working on it. Internally this will also update the 'observedGeneration' field that notify clients that the resource is being worked on
func PrepareResource ¶
func PrepareResource(client client.Client, request reconcile.Request, resource mdbv1.AtlasCustomResource, log *zap.SugaredLogger) workflow.Result
PrepareResource queries the Custom Resource 'request.NamespacedName' and populates the 'resource' pointer.
func ReconciliationShouldBeSkipped ¶ added in v0.8.0
func ReconciliationShouldBeSkipped(resource mdbv1.AtlasCustomResource) bool
ReconciliationShouldBeSkipped returns 'true' if reconciliation should be skipped for this resource.
func ResourceShouldBeLeftInAtlas ¶ added in v0.6.1
func ResourceShouldBeLeftInAtlas(resource mdbv1.AtlasCustomResource) bool
ResourceShouldBeLeftInAtlas returns 'true' if the resource should not be removed from Atlas on K8s resource removal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.