Documentation
¶
Overview ¶
pkg/controllers/namespace/wiring.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NMSink ¶
type NMSink struct { NM *NamespaceController Resync time.Duration Finalizer v1.FinalizerName }
func (*NMSink) AddProject ¶
func (*NMSink) RemoveProject ¶
type NamespaceController ¶
type NamespaceController struct {
// contains filtered or unexported fields
}
NamespaceController is responsible for performing actions dependent upon a namespace phase
func NewNamespaceController ¶
func NewNamespaceController( ctx context.Context, kubeClient clientset.Interface, metadataClient metadata.Interface, discoverResourcesFn func() ([]*metav1.APIResourceList, error), namespaceInformer coreinformers.NamespaceInformer, resyncPeriod time.Duration, finalizerToken v1.FinalizerName, ) *NamespaceController
NewNamespaceController creates a multi-cluster-aware controller and wires the passed informer/client as the initial "root" cluster. If you want a different name, replace "root" with your desired ID.
func (*NamespaceController) AddProject ¶
func (*NamespaceController) RemoveProject ¶
func (nm *NamespaceController) RemoveProject(project string)
func (*NamespaceController) Run ¶
func (nm *NamespaceController) Run(ctx context.Context, workers int)
Run starts observing the system with the specified number of workers. NOTE: this multi-cluster version waits for the caches of all clusters that are registered at start. If you add clusters dynamically later, ensure AddCluster waits for its informer(s) to sync before they begin enqueueing.
Click to show internal directories.
Click to hide internal directories.