v1alpha1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

+groupName=cozystack.io

Index

Constants

View Source
const (
	Group    = "cozystack.io"
	Version  = "v1alpha1"
	Resource = "schedulingclasses"

	// SchedulingClassAnnotation is the pod annotation that references a SchedulingClass CR by name.
	SchedulingClassAnnotation = "scheduler.cozystack.io/scheduling-class"

	// SchedulingClassLabel is the namespace label that indicates a scheduling class
	// should be applied to workloads in that namespace.
	SchedulingClassLabel = "scheduler.cozystack.io/scheduling-class"

	// SchedulerName is the name of the cozystack custom scheduler.
	SchedulerName = "cozystack-scheduler"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SchedulingClass

type SchedulingClass struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SchedulingClassSpec `json:"spec,omitempty"`
}

type SchedulingClassList

type SchedulingClassList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SchedulingClass `json:"items"`
}

type SchedulingClassSpec

type SchedulingClassSpec struct {
	NodeSelector              map[string]string             `json:"nodeSelector,omitempty"`
	NodeAffinity              *v1.NodeAffinity              `json:"nodeAffinity,omitempty"`
	PodAffinity               *v1.PodAffinity               `json:"podAffinity,omitempty"`
	PodAntiAffinity           *v1.PodAntiAffinity           `json:"podAntiAffinity,omitempty"`
	TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
}

Jump to

Keyboard shortcuts

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