namespace

package
v0.6.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NamespaceScheduled represents status of the scheduling process for this namespace.
	NamespaceScheduled conditionsv1alpha1.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"
	// NamespaceReasonSchedulingDisabled reason in NamespaceScheduled Namespace Condition
	// means that the automated scheduling for this namespace is disabled, e.g., when it's
	// labelled with ScheduleDisabledLabel.
	NamespaceReasonSchedulingDisabled = "SchedulingDisabled"
	// NamespaceReasonPlacementInvalid reason in NamespaceScheduled Namespace Condition
	// means the placement annotation has invalid value.
	NamespaceReasonPlacementInvalid = "PlacementInvalid"
)

Variables

This section is empty.

Functions

func NewController

func NewController(
	kubeClusterClient kubernetesclient.ClusterInterface,
	kcpClusterClient kcpclient.ClusterInterface,
	namespaceInformer coreinformers.NamespaceInformer,
	locationInformer schedulinginformers.LocationInformer,
	syncTargetInformer workloadinformers.SyncTargetInformer,
	placementInformer schedulinginformers.PlacementInformer,
) (*controller, error)

NewController returns a new controller starting the process of placing namespaces onto locations by creating a placement annotation.

Types

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 conditionsv1alpha1.Conditions)

Jump to

Keyboard shortcuts

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