orphaning

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldBeOrphaned

func ShouldBeOrphaned(fedObj, clusterObj metav1.Object) bool

Types

type OrphanManagedResourcesBehavior

type OrphanManagedResourcesBehavior string
const (
	// If this annotation is present on a federated resource, it controls the
	// manner in which resources in the member clusters are orphaned when the
	// federated resource is deleted.
	// If the annotation is not present (the default), resources in member
	// clusters will be deleted before the federated resource is deleted.
	OrphanManagedResourcesAnnotation         = common.DefaultPrefix + "orphan"
	OrphanManagedResourcesInternalAnnotation = common.InternalPrefix + "orphan"

	// Orphan all managed resources
	OrphanManagedResourcesAll OrphanManagedResourcesBehavior = "all"
	// Orphan only the adopted resources
	OrphanManagedResourcesAdopted OrphanManagedResourcesBehavior = "adopted"
	// Orphaning disabled, delete managed resources
	OrphanManagedResourcesNone OrphanManagedResourcesBehavior = ""
)

Jump to

Keyboard shortcuts

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