Back to godoc.org
k8s.io/kubernetes / pkg / controller / namespace

Package namespace

v1.19.3
Latest Go to latest

The highest tagged major version is .

Published: Oct 14, 2020 | License: Apache-2.0 | Module: k8s.io/kubernetes

Overview

Package namespace contains a controller that handles namespace lifecycle

Index

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