v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package v1alpha1 provides alpha API for Katalyst Autoscaling API objects.

Index

Constants

View Source
const (
	// GroupName is the group name used in this package
	GroupName string = "tide.katalyst.kubewharf.io"
)
View Source
const (
	ResourceNameTideNodePool = "tidenodepools"
)

ResourceName const is used to construct standard gvr

Variables

View Source
var (
	// SchemeBuilder collects schemas to build.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is used by generated client to add this scheme to the generated client.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type EvictStrategy

type EvictStrategy struct {
	Type string `json:"type"`
	// +optional
	Watermark Watermark `json:"watermark,omitempty"`
}

func (*EvictStrategy) DeepCopy

func (in *EvictStrategy) DeepCopy() *EvictStrategy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EvictStrategy.

func (*EvictStrategy) DeepCopyInto

func (in *EvictStrategy) DeepCopyInto(out *EvictStrategy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EvictStrategyType

type EvictStrategyType string
const (
	WatermarkStrategy EvictStrategyType = "watermark"
)

type LabelOption

type LabelOption struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

func (*LabelOption) DeepCopy

func (in *LabelOption) DeepCopy() *LabelOption

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelOption.

func (*LabelOption) DeepCopyInto

func (in *LabelOption) DeepCopyInto(out *LabelOption)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeConfigs

type NodeConfigs struct {
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// +optional
	OnlineLabel *LabelOption `json:"onlineLabel,omitempty"`
	// +optional
	OfflineLabel *LabelOption `json:"offlineLabel,omitempty"`
	// +optional
	TideLabel *LabelOption `json:"tideLabel,omitempty"`
	// +optional
	Reserve ReserveOptions `json:"reserve,omitempty"`
}

func (*NodeConfigs) DeepCopy

func (in *NodeConfigs) DeepCopy() *NodeConfigs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigs.

func (*NodeConfigs) DeepCopyInto

func (in *NodeConfigs) DeepCopyInto(out *NodeConfigs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PodSelector

type PodSelector struct {
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
}

func (*PodSelector) DeepCopy

func (in *PodSelector) DeepCopy() *PodSelector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSelector.

func (*PodSelector) DeepCopyInto

func (in *PodSelector) DeepCopyInto(out *PodSelector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReserveNodes

type ReserveNodes struct {
	OnlineNodes  []string `json:"onlineNodes,omitempty"`
	OfflineNodes []string `json:"offlineNodes,omitempty"`
}

func (*ReserveNodes) DeepCopy

func (in *ReserveNodes) DeepCopy() *ReserveNodes

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReserveNodes.

func (*ReserveNodes) DeepCopyInto

func (in *ReserveNodes) DeepCopyInto(out *ReserveNodes)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReserveOptions

type ReserveOptions struct {
	// +optional
	Online *intstr.IntOrString `json:"online,omitempty"`
	// +optional
	Offline *intstr.IntOrString `json:"offline,omitempty"`
}

func (*ReserveOptions) DeepCopy

func (in *ReserveOptions) DeepCopy() *ReserveOptions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReserveOptions.

func (*ReserveOptions) DeepCopyInto

func (in *ReserveOptions) DeepCopyInto(out *ReserveOptions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaintOption

type TaintOption struct {
	Key    string `json:"key"`
	Value  string `json:"value"`
	Effect string `json:"effect,omitempty"`
}

func (*TaintOption) DeepCopy

func (in *TaintOption) DeepCopy() *TaintOption

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaintOption.

func (*TaintOption) DeepCopyInto

func (in *TaintOption) DeepCopyInto(out *TaintOption)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TideNodePool

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

	Spec TideNodePoolSpec `json:"spec,omitempty"`
	// +optional
	Status TideNodePoolStatus `json:"status,omitempty"`
}

TideNodePool is the Schema for the tidenodepools API

func (*TideNodePool) DeepCopy

func (in *TideNodePool) DeepCopy() *TideNodePool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TideNodePool.

func (*TideNodePool) DeepCopyInto

func (in *TideNodePool) DeepCopyInto(out *TideNodePool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TideNodePool) DeepCopyObject

func (in *TideNodePool) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TideNodePoolList

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

TideNodePoolList contains a list of TideNodePool

func (*TideNodePoolList) DeepCopy

func (in *TideNodePoolList) DeepCopy() *TideNodePoolList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TideNodePoolList.

func (*TideNodePoolList) DeepCopyInto

func (in *TideNodePoolList) DeepCopyInto(out *TideNodePoolList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TideNodePoolList) DeepCopyObject

func (in *TideNodePoolList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TideNodePoolSpec

type TideNodePoolSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	EvictStrategy EvictStrategy `json:"evictStrategy,omitempty"`
	NodeConfigs   NodeConfigs   `json:"nodeConfigs"`
}

TideNodePoolSpec defines the desired state of TideNodePool

func (*TideNodePoolSpec) DeepCopy

func (in *TideNodePoolSpec) DeepCopy() *TideNodePoolSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TideNodePoolSpec.

func (*TideNodePoolSpec) DeepCopyInto

func (in *TideNodePoolSpec) DeepCopyInto(out *TideNodePoolSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TideNodePoolStatus

type TideNodePoolStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// +optional
	ReserveNodes ReserveNodes `json:"reserveNodes,omitempty"`
	// +optional
	TideNodes TideNodes `json:"tideNodes,omitempty"`
}

TideNodePoolStatus defines the observed state of TideNodePool

func (*TideNodePoolStatus) DeepCopy

func (in *TideNodePoolStatus) DeepCopy() *TideNodePoolStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TideNodePoolStatus.

func (*TideNodePoolStatus) DeepCopyInto

func (in *TideNodePoolStatus) DeepCopyInto(out *TideNodePoolStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TideNodes

type TideNodes struct {
	Nodes []string `json:"nodes,omitempty"`
}

func (*TideNodes) DeepCopy

func (in *TideNodes) DeepCopy() *TideNodes

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TideNodes.

func (*TideNodes) DeepCopyInto

func (in *TideNodes) DeepCopyInto(out *TideNodes)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Watermark

type Watermark struct {
	// +optional
	EvictOnlinePodTaint *TaintOption `json:"evictOnlinePodTaint,omitempty"`
	// +optional
	EvictOfflinePodTaint *TaintOption `json:"evictOfflinePodTaint,omitempty"`
}

func (*Watermark) DeepCopy

func (in *Watermark) DeepCopy() *Watermark

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Watermark.

func (*Watermark) DeepCopyInto

func (in *Watermark) DeepCopyInto(out *Watermark)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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