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" // 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" )
View Source
const ( ClusterLabel = "workloads.kcp.dev/cluster" SchedulingDisabledLabel = "experimental.workloads.kcp.dev/scheduling-disabled" // The presence of `workloads.kcp.dev/schedulable: true` on a workspace // enables scheduling for the contents of the workspace. It is applied by // default to workspaces of type `Universal`. WorkspaceSchedulableLabel = "workloads.kcp.dev/schedulable" )
Variables ¶
This section is empty.
Functions ¶
func IsScheduled ¶
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( dynamicClusterClient dynamic.ClusterInterface, dynamicMetadataClusterClient dynamic.ClusterInterface, clusterDiscoveryClient clusterDiscovery, kubeClusterClient kubernetes.ClusterInterface, workspaceInformer tenancyinformers.ClusterWorkspaceInformer, clusterInformer workloadinformer.WorkloadClusterInformer, clusterLister workloadlisters.WorkloadClusterLister, namespaceInformer coreinformers.NamespaceInformer, namespaceLister corelisters.NamespaceLister, gvkTrans *gvk.GVKTranslator, pollInterval time.Duration, ) *Controller
NewController returns a new Controller which schedules namespaced resources to a Cluster.
type NamespaceConditionsAdapter ¶
NamespaceConditionsAdapter enables the use of the conditions helper library with Namespaces.
func (*NamespaceConditionsAdapter) GetConditions ¶
func (ca *NamespaceConditionsAdapter) GetConditions() conditionsapi.Conditions
func (*NamespaceConditionsAdapter) SetConditions ¶
func (ca *NamespaceConditionsAdapter) SetConditions(conditions conditionsapi.Conditions)
Click to show internal directories.
Click to hide internal directories.