Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSyncIntents ¶
func GetSyncIntents(upstreamResource metav1.Object) (map[string]SyncIntent, error)
GetSyncIntents gathers, for each SyncTarget, all the information related to the Syncing of the resource to this SyncTarget. This information comes from labels and annotations. Keys in the returns map are SyncTarget keys.
Types ¶
type SyncIntent ¶
type SyncIntent struct { // ResourceState is the requested syncing state for this SyncTarget. // It is read on the state.workload.kcp.io/<syncTargetKey> label ResourceState v1alpha1.ResourceState // DeletionTimestamp is the parsed timestamp coming from the content of // the deletion.internal.workload.kcp.io/<syncTargetKey> annotation. // It expresses the timestamped intent that a resource should be removed // the given SyncTarget DeletionTimestamp *metav1.Time // Finalizers is the list of "soft" finalizers defined for this resource // and this SyncTarget. // It is read on the finalizers.workload.kcp.io/<syncTargetKey> annotation. Finalizers string }
SyncIntent gathers all the information related to the Syncing of a resource to a given SynTarget. This information comes from labels and annotations.
Click to show internal directories.
Click to hide internal directories.