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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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