v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: dask.GroupName, Version: "v1alpha1"}

Functions

func Kind

func Kind(kind string) schema.GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Types

type Cluster

type Cluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ClusterSpec   `json:"spec,omitempty"`
	Status ClusterStatus `json:"status,omitempty"`
}

+genclient +kubebuilder:subresource:status +kubebuilder:subresource:scale:specpath=.spec.workers.replicas,statuspath=.status.workers.count,selectorpath=.status.workers.selector +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type ClusterList

type ClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Cluster `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type ClusterSpec

type ClusterSpec struct {
	Scheduler SchedulerSpec `json:"scheduler,omitempty"`
	Workers   WorkerSpec    `json:"workers,omitempty"`
}

type ClusterStatus

type ClusterStatus struct {
	Scheduler SchedulerStatus `json:"scheduler,omitempty"`
	Workers   WorkerStatus    `json:"workers,omitempty"`
}

type RetiredWorker

type RetiredWorker struct {
	Id string `json:"id,omitEmpty"`
	// The time the pod was retired, so we can kill it if it takes too long.
	Time metav1.Time `json:"time,omitEmpty"`
}

type SchedulerSpec

type SchedulerSpec struct {
	Template v1.PodTemplateSpec `json:"template,omitempty"`
	Service  v1.ServiceSpec     `json:"service,omitempty"`
}

type SchedulerStatus

type SchedulerStatus struct {
	Address string `json:"address,omitempty"`
}

type WorkerSpec

type WorkerSpec struct {
	Replicas int32              `json:"replicas"`
	Template v1.PodTemplateSpec `json:"template,omitempty"`
}

type WorkerStatus

type WorkerStatus struct {
	Replicas int32 `json:"count"`
	// To support the horizontal pod autoscaler
	Selector string `json:"selector,omitEmpty"`
	// +listType=map
	// +listMapKey=id
	Retiring []RetiredWorker `json:"retiring,omitempty"`
}

Jump to

Keyboard shortcuts

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