adoption

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConflictResolutionAnnotation         = common.DefaultPrefix + "conflict-resolution"
	ConflictResolutionInternalAnnotation = common.InternalPrefix + "conflict-resolution"
	// ClustersToAdoptAnnotation specifies the set of clusters where preexisting resources are allowed to be adopted. Defaults to no clusters.
	// It will only take effect if adoption is enabled by the conflict resolution annotation.
	ClustersToAdoptAnnotation         = common.DefaultPrefix + "clusters-to-adopt"
	ClustersToAdoptInternalAnnotation = common.InternalPrefix + "clusters-to-adopt"
)

Variables

View Source
var AdoptedAnnotation = common.DefaultPrefix + "adopted"

Functions

func AddAdoptedAnnotation

func AddAdoptedAnnotation(obj metav1.Object) bool

func FilterToAdoptCluster

func FilterToAdoptCluster(obj metav1.Object, clusterName string) (bool, error)

func HasAdoptedAnnotation

func HasAdoptedAnnotation(obj metav1.Object) bool

func RemoveAdoptedAnnotation

func RemoveAdoptedAnnotation(obj metav1.Object)

func ShouldAdoptPreexistingResources

func ShouldAdoptPreexistingResources(obj metav1.Object) bool

Types

type ConflictResolution

type ConflictResolution string
const (
	// Conflict resolution for preexisting resources
	ConflictResolutionAdopt ConflictResolution = "adopt"
)

Jump to

Keyboard shortcuts

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