MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / markAsReady

Function markAsReady

internal/management/controller/common.go:148–155  ·  view source on GitHub ↗

markAsReady marks the reconciliation as succeeded inside the resource

(
	ctx context.Context,
	cli client.Client,
	resource markableAsReady,
)

Source from the content-addressed store, hash-verified

146
147// markAsReady marks the reconciliation as succeeded inside the resource
148func markAsReady(
149 ctx context.Context,
150 cli client.Client,
151 resource markableAsReady,
152) error {
153 resource.SetAsReady()
154 return cli.Status().Update(ctx, resource)
155}
156
157// clusterScopedResource is a resource bound to a Cluster through a local
158// object reference.

Callers 3

ReconcileMethod · 0.85
ReconcileMethod · 0.85
ReconcileMethod · 0.85

Calls 3

StatusMethod · 0.80
SetAsReadyMethod · 0.65
UpdateMethod · 0.45

Tested by

no test coverage detected