MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / NewNotInSync

Function NewNotInSync

pkg/provision/sync/cluster_api.go:54–59  ·  view source on GitHub ↗

NewNotInSync wraps creation of NotInSyncErrors for simplicity

(obj crclient.Object, reason NotInSyncReason)

Source from the content-addressed store, hash-verified

52
53// NewNotInSync wraps creation of NotInSyncErrors for simplicity
54func NewNotInSync(obj crclient.Object, reason NotInSyncReason) *NotInSyncError {
55 return &NotInSyncError{
56 Reason: reason,
57 Object: obj,
58 }
59}
60
61// UnrecoverableSyncError is returned when provided objects cannot be synced with the cluster due to
62// an unexpected error (e.g. they are invalid according to the object's spec).

Callers 4

SyncObjectWithClusterFunction · 0.85
createObjectGenericFunction · 0.85
updateObjectGenericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected