namespace

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NamespaceScheduled represents status of the scheduling process for this namespace.
	NamespaceScheduled conditionsapi.ConditionType = "NamespaceScheduled"
	// NamespaceReasonUnschedulable reason in NamespaceScheduled Namespace Condition
	// means that the scheduler can't schedule the namespace right now, e.g. due to a
	// lack of ready clusters being available.
	NamespaceReasonUnschedulable = "Unschedulable"
)

Variables

This section is empty.

Functions

func IsScheduled

func IsScheduled(ns *corev1.Namespace) bool

IsScheduled returns whether the given namespace's status indicates it is scheduled.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(
	workspaceLister tenancylisters.WorkspaceLister,
	dynClient dynamic.ClusterInterface,
	disco clusterDiscovery,
	clusterInformer clusterinformer.ClusterInformer,
	clusterLister clusterlisters.ClusterLister,
	namespaceInformer coreinformers.NamespaceInformer,
	namespaceLister corelisters.NamespaceLister,
	kubeClient kubernetes.ClusterInterface,
	gvkTrans *gvk.GVKTranslator,
	pollInterval time.Duration,
) *Controller

NewController returns a new Controller which schedules namespaced resources to a Cluster.

func (*Controller) Start

func (c *Controller) Start(ctx context.Context, numThreads int)

type NamespaceConditionsAdapter

type NamespaceConditionsAdapter struct {
	*corev1.Namespace
}

NamespaceConditionsAdapter enables the use of the conditions helper library with Namespaces.

func (*NamespaceConditionsAdapter) GetConditions

func (*NamespaceConditionsAdapter) SetConditions

func (ca *NamespaceConditionsAdapter) SetConditions(conditions conditionsapi.Conditions)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL