package namespace
import "k8s.io/kubernetes/pkg/controller/namespace"
namespace contains a controller that handles namespace lifecycle
Index ¶
- func ServerPreferredNamespacedGroupVersionResources(discoveryClient discovery.DiscoveryInterface) ([]unversioned.GroupVersionResource, error)
- type NamespaceController
- func NewNamespaceController( kubeClient clientset.Interface, clientPool dynamic.ClientPool, groupVersionResources []unversioned.GroupVersionResource, resyncPeriod time.Duration, finalizerToken api.FinalizerName) *NamespaceController
- func (nm *NamespaceController) Run(workers int, stopCh <-chan struct{})
Functions ¶
func ServerPreferredNamespacedGroupVersionResources ¶
func ServerPreferredNamespacedGroupVersionResources(discoveryClient discovery.DiscoveryInterface) ([]unversioned.GroupVersionResource, error)
ServerPreferredNamespacedGroupVersionResources uses the specified client to discover the set of preferred groupVersionResources that are namespaced
Types ¶
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, clientPool dynamic.ClientPool, groupVersionResources []unversioned.GroupVersionResource, resyncPeriod time.Duration, finalizerToken api.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.
Source Files ¶
doc.go namespace_controller.go namespace_controller_utils.go
- Version
- v1.3.0-alpha.4
- Published
- May 17, 2016
- Platform
- js/wasm
- Imports
- 22 packages
- Last checked
- 25 seconds ago –
Tools for package owners.