Documentation
¶
Overview ¶
Package v1alpha1 provides alpha API for Katalyst Overcommit API objects.
Index ¶
Constants ¶
const ( // GroupName is the group name used in this package GroupName string = "overcommit.katalyst.kubewharf.io" )
const (
ResourceNameNodeOvercommitConfigs = "nodeovercommitconfigs"
)
Variables ¶
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 )
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 ¶
func (in *NodeOvercommitConfig) DeepCopy() *NodeOvercommitConfig
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 ¶
func (in *NodeOvercommitConfigList) DeepCopy() *NodeOvercommitConfigList
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 ¶
func (in *NodeOvercommitConfigSpec) DeepCopy() *NodeOvercommitConfigSpec
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 ¶
func (in *NodeOvercommitConfigStatus) DeepCopy() *NodeOvercommitConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeOvercommitConfigStatus.
func (*NodeOvercommitConfigStatus) DeepCopyInto ¶
func (in *NodeOvercommitConfigStatus) DeepCopyInto(out *NodeOvercommitConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.