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

Function markAsFailed

internal/management/controller/common.go:63–71  ·  view source on GitHub ↗

markAsFailed marks the reconciliation as failed and logs the corresponding error

(
	ctx context.Context,
	cli client.Client,
	resource markableAsFailed,
	err error,
)

Source from the content-addressed store, hash-verified

61
62// markAsFailed marks the reconciliation as failed and logs the corresponding error
63func markAsFailed(
64 ctx context.Context,
65 cli client.Client,
66 resource markableAsFailed,
67 err error,
68) error {
69 resource.SetAsFailed(err)
70 return cli.Status().Update(ctx, resource)
71}
72
73type markableAsUnknown interface {
74 client.Object

Callers 4

ReconcileMethod · 0.85
ReconcileMethod · 0.85
ReconcileMethod · 0.85

Calls 3

StatusMethod · 0.80
SetAsFailedMethod · 0.65
UpdateMethod · 0.45

Tested by

no test coverage detected