v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Overview

Package v1alpha1 provides alpha API for Katalyst Overcommit API objects.

Index

Constants

View Source
const (
	// GroupName is the group name used in this package
	GroupName string = "overcommit.katalyst.kubewharf.io"
)
View Source
const (
	ResourceNameNodeOvercommitConfigs = "nodeovercommitconfigs"
)

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 NodeOvercommitConfig

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

	Spec   NodeOvercommitConfigSpec   `json:"spec,omitempty"`
	Status NodeOvercommitConfigStatus `json:"status,omitempty"`
}

NodeOvercommitConfig is the Schema for the nodeovercommitconfigs API

func (*NodeOvercommitConfig) DeepCopy

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

func (*NodeOvercommitConfig) DeepCopyInto

func (in *NodeOvercommitConfig) DeepCopyInto(out *NodeOvercommitConfig)

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

func (*NodeOvercommitConfig) DeepCopyObject

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

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

type NodeOvercommitConfigList

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

NodeOvercommitConfigList contains a list of NodeOvercommitConfig

func (*NodeOvercommitConfigList) DeepCopy

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

func (*NodeOvercommitConfigList) DeepCopyInto

func (in *NodeOvercommitConfigList) DeepCopyInto(out *NodeOvercommitConfigList)

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

func (*NodeOvercommitConfigList) DeepCopyObject

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

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

type NodeOvercommitConfigSpec

type NodeOvercommitConfigSpec struct {
	// NodeOvercommitSelectorVal is the value of node label selector with key consts.NodeOvercommitSelectorKey,
	// it decides whether to update Nodes if the Node matches the selector 'consts.NodeOvercommitSelectorKey=NodeOvercommitSelectorVal'
	// +optional
	NodeOvercommitSelectorVal string `json:"nodeOvercommitSelectorVal,omitempty"`

	// ResourceOvercommitRatio describes the resource overcommit ratio that needs to inject into Node.Annotations
	// cpu,memory are supported.
	// +optional
	ResourceOvercommitRatio map[v1.ResourceName]string `json:"resourceOvercommitRatio,omitempty"`
}

NodeOvercommitConfigSpec is a description of a NodeOvercommitConfig

func (*NodeOvercommitConfigSpec) DeepCopy

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

func (*NodeOvercommitConfigSpec) DeepCopyInto

func (in *NodeOvercommitConfigSpec) DeepCopyInto(out *NodeOvercommitConfigSpec)

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

type NodeOvercommitConfigStatus

type NodeOvercommitConfigStatus struct {
	// NodeList which the nodeOvercommitConfig rules matched
	MatchedNodeList []string `json:"matchedNodeList,omitempty"`
}

func (*NodeOvercommitConfigStatus) DeepCopy

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

func (*NodeOvercommitConfigStatus) DeepCopyInto

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