Back to / pkg / controller / namespace

Package namespace

Latest Go to latest

The highest tagged major version is .

Published: Oct 14, 2020 | License: Apache-2.0 | Module:


Package namespace contains a controller that handles namespace lifecycle


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(
	kubeClient clientset.Interface,
	metadataClient metadata.Interface,
	discoverResourcesFn func() ([]*metav1.APIResourceList, error),
	namespaceInformer coreinformers.NamespaceInformer,
	resyncPeriod time.Duration,
	finalizerToken v1.FinalizerName) *NamespaceController

NewNamespaceController creates a new NamespaceController

func (*NamespaceController) Run

func (nm *NamespaceController) Run(workers int, stopCh <-chan struct{})

Run starts observing the system with the specified number of workers.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier