Documentation ¶
Index ¶
- Constants
- Variables
- func AddAdoptedAnnotation(obj metav1.Object) bool
- func FilterToAdoptCluster(obj metav1.Object, clusterName string) (bool, error)
- func HasAdoptedAnnotation(obj metav1.Object) bool
- func RemoveAdoptedAnnotation(obj metav1.Object)
- func ShouldAdoptPreexistingResources(obj metav1.Object) bool
- type ConflictResolution
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 FilterToAdoptCluster ¶
func HasAdoptedAnnotation ¶
func RemoveAdoptedAnnotation ¶
Types ¶
type ConflictResolution ¶
type ConflictResolution string
const ( // Conflict resolution for preexisting resources ConflictResolutionAdopt ConflictResolution = "adopt" )
Click to show internal directories.
Click to hide internal directories.