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

Function markAsUnknown

internal/management/controller/common.go:79–87  ·  view source on GitHub ↗

markAsUnknown marks the reconciliation as failed and logs the corresponding error

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

Source from the content-addressed store, hash-verified

77
78// markAsUnknown marks the reconciliation as failed and logs the corresponding error
79func markAsUnknown(
80 ctx context.Context,
81 cli client.Client,
82 resource markableAsUnknown,
83 err error,
84) error {
85 resource.SetAsUnknown(err)
86 return cli.Status().Update(ctx, resource)
87}
88
89type replicaTransitionAware interface {
90 markableAsUnknown

Callers 4

ReconcileMethod · 0.85
ReconcileMethod · 0.85
ReconcileMethod · 0.85

Calls 3

StatusMethod · 0.80
SetAsUnknownMethod · 0.65
UpdateMethod · 0.45

Tested by

no test coverage detected