helpers

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL