Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewSpecSyncer ¶
func NewSpecSyncer(syncerLogger logr.Logger, syncTargetClusterName logicalcluster.Name, syncTargetName, syncTargetKey string, advancedSchedulingEnabled bool, upstreamClient kcpdynamic.ClusterInterface, downstreamClient dynamic.Interface, downstreamKubeClient kubernetes.Interface, ddsifForUpstreamSyncer *ddsif.DiscoveringDynamicSharedInformerFactory, ddsifForDownstream *ddsif.GenericDiscoveringDynamicSharedInformerFactory[cache.SharedIndexInformer, cache.GenericLister, informers.GenericInformer], downstreamNSCleaner shared.Cleaner, syncTargetUID types.UID, dnsNamespace string, dnsProcessor *dns.DNSProcessor, dnsImage string, mutators ...Mutator) (*Controller, error)
func NewSpecSyncerForDownstream ¶
func NewSpecSyncerForDownstream(syncerLogger logr.Logger, syncTargetClusterName logicalcluster.Name, syncTargetName, syncTargetKey string, advancedSchedulingEnabled bool, getShardAccess synctarget.GetShardAccessFunc, downstreamClient dynamic.Interface, downstreamKubeClient kubernetes.Interface, ddsifForDownstream *ddsif.GenericDiscoveringDynamicSharedInformerFactory[cache.SharedIndexInformer, cache.GenericLister, informers.GenericInformer], downstreamNSCleaner shared.Cleaner, syncTargetUID types.UID, dnsNamespace string, dnsProcessor *dns.DNSProcessor, dnsImage string, mutators ...Mutator) (*Controller, error)
func (*Controller) AddToQueue ¶
func (c *Controller) AddToQueue(gvr schema.GroupVersionResource, obj interface{}, logger logr.Logger)
type Mutator ¶
type Mutator interface { GVRs() []schema.GroupVersionResource Mutate(obj *unstructured.Unstructured) error }
Click to show internal directories.
Click to hide internal directories.