Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Prefix = "multicluster.admiralty.io/parent-" LabelParentName = Prefix + "name" LabelParentNamespace = Prefix + "namespace" LabelParentClusterName = Prefix + "clusterName" )
Functions ¶
func IsChildNotFoundErr ¶
func IsDuplicateChildErr ¶
func NewController ¶
func NewController(parentCluster *cluster.Cluster, childCluster *cluster.Cluster, o Options) (*controller.Controller, error)
Types ¶
type Options ¶
type Options struct { ParentPrototype runtime.Object ChildPrototype runtime.Object ParentWatchOptions controller.WatchOptions ChildNamespace string // optional, can optimize List operations vs. it only be set in MakeChild Applier Applier CopyLabels bool MakeSelector func(parent interface{}) labels.Set // optional MakeExpectedChildWhenFound bool }
Click to show internal directories.
Click to hide internal directories.