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" )
View Source
const (
ControllerName = "tmc-namespace-scheduling-placement"
)
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewController( kubeClusterClient kcpkubernetesclientset.ClusterInterface, namespaceInformer kcpcorev1informers.NamespaceClusterInformer, placementInformer schedulingv1alpha1informers.PlacementClusterInformer, ) (*controller, error)
NewController returns a new controller starting the process of placing namespaces onto locations by creating a placement annotation.
Types ¶
type NamespaceConditionsAdapter ¶
NamespaceConditionsAdapter enables the use of the conditions helper library with Namespaces.
func (*NamespaceConditionsAdapter) GetConditions ¶
func (ca *NamespaceConditionsAdapter) GetConditions() conditionsv1alpha1.Conditions
func (*NamespaceConditionsAdapter) SetConditions ¶
func (ca *NamespaceConditionsAdapter) SetConditions(conditions conditionsv1alpha1.Conditions)
type NamespaceSpec ¶
type NamespaceSpec = corev1.NamespaceSpec
type NamespaceStatus ¶
type NamespaceStatus = corev1.NamespaceStatus
type Patcher ¶
type Patcher = corev1client.NamespaceInterface
type Resource ¶
type Resource = committer.Resource[*NamespaceSpec, *NamespaceStatus]
Click to show internal directories.
Click to hide internal directories.