Documentation ¶
Index ¶
- Variables
- type AssignPodPolicy
- func (*AssignPodPolicy) Descriptor() ([]byte, []int)
- func (m *AssignPodPolicy) GetNodeName() string
- func (m *AssignPodPolicy) GetNodePriority() *v1alpha21.NodePriority
- func (m *AssignPodPolicy) GetNodeSelector() *v1alpha21.Selector
- func (m *AssignPodPolicy) GetPolicy() isAssignPodPolicy_Policy
- func (m *AssignPodPolicy) GetTime() *timestamp.Timestamp
- func (*AssignPodPolicy) ProtoMessage()
- func (m *AssignPodPolicy) Reset()
- func (m *AssignPodPolicy) String() string
- func (m *AssignPodPolicy) XXX_DiscardUnknown()
- func (m *AssignPodPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssignPodPolicy) XXX_Merge(src proto.Message)
- func (*AssignPodPolicy) XXX_OneofWrappers() []interface{}
- func (m *AssignPodPolicy) XXX_Size() int
- func (m *AssignPodPolicy) XXX_Unmarshal(b []byte) error
- type AssignPodPolicy_NodeName
- type AssignPodPolicy_NodePriority
- type AssignPodPolicy_NodeSelector
- type ContainerRecommendation
- func (*ContainerRecommendation) Descriptor() ([]byte, []int)
- func (m *ContainerRecommendation) GetInitialLimitRecommendations() map[int32]*v1alpha2.MetricData
- func (m *ContainerRecommendation) GetInitialRequestRecommendations() map[int32]*v1alpha2.MetricData
- func (m *ContainerRecommendation) GetLimitRecommendations() map[int32]*v1alpha2.MetricData
- func (m *ContainerRecommendation) GetName() string
- func (m *ContainerRecommendation) GetRequestRecommendations() map[int32]*v1alpha2.MetricData
- func (*ContainerRecommendation) ProtoMessage()
- func (m *ContainerRecommendation) Reset()
- func (m *ContainerRecommendation) String() string
- func (m *ContainerRecommendation) XXX_DiscardUnknown()
- func (m *ContainerRecommendation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContainerRecommendation) XXX_Merge(src proto.Message)
- func (m *ContainerRecommendation) XXX_Size() int
- func (m *ContainerRecommendation) XXX_Unmarshal(b []byte) error
- type PodRecommendation
- func (*PodRecommendation) Descriptor() ([]byte, []int)
- func (m *PodRecommendation) GetApplyRecommendationNow() bool
- func (m *PodRecommendation) GetAssignPodPolicy() *AssignPodPolicy
- func (m *PodRecommendation) GetContainerRecommendations() []*ContainerRecommendation
- func (m *PodRecommendation) GetNamespacedName() *v1alpha22.NamespacedName
- func (*PodRecommendation) ProtoMessage()
- func (m *PodRecommendation) Reset()
- func (m *PodRecommendation) String() string
- func (m *PodRecommendation) XXX_DiscardUnknown()
- func (m *PodRecommendation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PodRecommendation) XXX_Merge(src proto.Message)
- func (m *PodRecommendation) XXX_Size() int
- func (m *PodRecommendation) XXX_Unmarshal(b []byte) error
- type RecommendationPolicy
Constants ¶
This section is empty.
Variables ¶
View Source
var RecommendationPolicy_name = map[int32]string{
0: "RECOMMENDATIONPOLICY_UNDEFINED",
1: "STABLE",
2: "COMPACT",
}
View Source
var RecommendationPolicy_value = map[string]int32{
"RECOMMENDATIONPOLICY_UNDEFINED": 0,
"STABLE": 1,
"COMPACT": 2,
}
Functions ¶
This section is empty.
Types ¶
type AssignPodPolicy ¶
type AssignPodPolicy struct { Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` // Types that are valid to be assigned to Policy: // *AssignPodPolicy_NodePriority // *AssignPodPolicy_NodeSelector // *AssignPodPolicy_NodeName Policy isAssignPodPolicy_Policy `protobuf_oneof:"policy"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Represents a recommended pod-to-node assignment (i.e. pod placement)
func (*AssignPodPolicy) Descriptor ¶
func (*AssignPodPolicy) Descriptor() ([]byte, []int)
func (*AssignPodPolicy) GetNodeName ¶
func (m *AssignPodPolicy) GetNodeName() string
func (*AssignPodPolicy) GetNodePriority ¶
func (m *AssignPodPolicy) GetNodePriority() *v1alpha21.NodePriority
func (*AssignPodPolicy) GetNodeSelector ¶
func (m *AssignPodPolicy) GetNodeSelector() *v1alpha21.Selector
func (*AssignPodPolicy) GetPolicy ¶
func (m *AssignPodPolicy) GetPolicy() isAssignPodPolicy_Policy
func (*AssignPodPolicy) GetTime ¶
func (m *AssignPodPolicy) GetTime() *timestamp.Timestamp
func (*AssignPodPolicy) ProtoMessage ¶
func (*AssignPodPolicy) ProtoMessage()
func (*AssignPodPolicy) Reset ¶
func (m *AssignPodPolicy) Reset()
func (*AssignPodPolicy) String ¶
func (m *AssignPodPolicy) String() string
func (*AssignPodPolicy) XXX_DiscardUnknown ¶
func (m *AssignPodPolicy) XXX_DiscardUnknown()
func (*AssignPodPolicy) XXX_Marshal ¶
func (m *AssignPodPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssignPodPolicy) XXX_Merge ¶
func (m *AssignPodPolicy) XXX_Merge(src proto.Message)
func (*AssignPodPolicy) XXX_OneofWrappers ¶
func (*AssignPodPolicy) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*AssignPodPolicy) XXX_Size ¶
func (m *AssignPodPolicy) XXX_Size() int
func (*AssignPodPolicy) XXX_Unmarshal ¶
func (m *AssignPodPolicy) XXX_Unmarshal(b []byte) error
type AssignPodPolicy_NodeName ¶
type AssignPodPolicy_NodeName struct {
NodeName string `protobuf:"bytes,4,opt,name=node_name,json=nodeName,proto3,oneof"`
}
type AssignPodPolicy_NodePriority ¶
type AssignPodPolicy_NodePriority struct {
NodePriority *v1alpha21.NodePriority `protobuf:"bytes,2,opt,name=node_priority,json=nodePriority,proto3,oneof"`
}
type ContainerRecommendation ¶
type ContainerRecommendation struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // use containersai.datahub.metric.v1alpha2.MetricType as key LimitRecommendations map[int32]*v1alpha2.MetricData `` /* 210-byte string literal not displayed */ // use containersai.datahub.metric.v1alpha2.MetricType as key RequestRecommendations map[int32]*v1alpha2.MetricData `` /* 216-byte string literal not displayed */ // use containersai.datahub.metric.v1alpha2.MetricType as key InitialLimitRecommendations map[int32]*v1alpha2.MetricData `` /* 233-byte string literal not displayed */ // use containersai.datahub.metric.v1alpha2.MetricType as key InitialRequestRecommendations map[int32]*v1alpha2.MetricData `` /* 239-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Represents a resource configuration recommendation
It includes recommended limits and requests for the initial stage (a container which is just started) and after the initial stage
func (*ContainerRecommendation) Descriptor ¶
func (*ContainerRecommendation) Descriptor() ([]byte, []int)
func (*ContainerRecommendation) GetInitialLimitRecommendations ¶
func (m *ContainerRecommendation) GetInitialLimitRecommendations() map[int32]*v1alpha2.MetricData
func (*ContainerRecommendation) GetInitialRequestRecommendations ¶
func (m *ContainerRecommendation) GetInitialRequestRecommendations() map[int32]*v1alpha2.MetricData
func (*ContainerRecommendation) GetLimitRecommendations ¶
func (m *ContainerRecommendation) GetLimitRecommendations() map[int32]*v1alpha2.MetricData
func (*ContainerRecommendation) GetName ¶
func (m *ContainerRecommendation) GetName() string
func (*ContainerRecommendation) GetRequestRecommendations ¶
func (m *ContainerRecommendation) GetRequestRecommendations() map[int32]*v1alpha2.MetricData
func (*ContainerRecommendation) ProtoMessage ¶
func (*ContainerRecommendation) ProtoMessage()
func (*ContainerRecommendation) Reset ¶
func (m *ContainerRecommendation) Reset()
func (*ContainerRecommendation) String ¶
func (m *ContainerRecommendation) String() string
func (*ContainerRecommendation) XXX_DiscardUnknown ¶
func (m *ContainerRecommendation) XXX_DiscardUnknown()
func (*ContainerRecommendation) XXX_Marshal ¶
func (m *ContainerRecommendation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContainerRecommendation) XXX_Merge ¶
func (m *ContainerRecommendation) XXX_Merge(src proto.Message)
func (*ContainerRecommendation) XXX_Size ¶
func (m *ContainerRecommendation) XXX_Size() int
func (*ContainerRecommendation) XXX_Unmarshal ¶
func (m *ContainerRecommendation) XXX_Unmarshal(b []byte) error
type PodRecommendation ¶
type PodRecommendation struct { NamespacedName *v1alpha22.NamespacedName `protobuf:"bytes,1,opt,name=namespaced_name,json=namespacedName,proto3" json:"namespaced_name,omitempty"` ApplyRecommendationNow bool `` /* 130-byte string literal not displayed */ AssignPodPolicy *AssignPodPolicy `protobuf:"bytes,3,opt,name=assign_pod_policy,json=assignPodPolicy,proto3" json:"assign_pod_policy,omitempty"` ContainerRecommendations []*ContainerRecommendation `` /* 133-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Represents a set of container resource configuration recommenations of a pod
func (*PodRecommendation) Descriptor ¶
func (*PodRecommendation) Descriptor() ([]byte, []int)
func (*PodRecommendation) GetApplyRecommendationNow ¶
func (m *PodRecommendation) GetApplyRecommendationNow() bool
func (*PodRecommendation) GetAssignPodPolicy ¶
func (m *PodRecommendation) GetAssignPodPolicy() *AssignPodPolicy
func (*PodRecommendation) GetContainerRecommendations ¶
func (m *PodRecommendation) GetContainerRecommendations() []*ContainerRecommendation
func (*PodRecommendation) GetNamespacedName ¶
func (m *PodRecommendation) GetNamespacedName() *v1alpha22.NamespacedName
func (*PodRecommendation) ProtoMessage ¶
func (*PodRecommendation) ProtoMessage()
func (*PodRecommendation) Reset ¶
func (m *PodRecommendation) Reset()
func (*PodRecommendation) String ¶
func (m *PodRecommendation) String() string
func (*PodRecommendation) XXX_DiscardUnknown ¶
func (m *PodRecommendation) XXX_DiscardUnknown()
func (*PodRecommendation) XXX_Marshal ¶
func (m *PodRecommendation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PodRecommendation) XXX_Merge ¶
func (m *PodRecommendation) XXX_Merge(src proto.Message)
func (*PodRecommendation) XXX_Size ¶
func (m *PodRecommendation) XXX_Size() int
func (*PodRecommendation) XXX_Unmarshal ¶
func (m *PodRecommendation) XXX_Unmarshal(b []byte) error
type RecommendationPolicy ¶
type RecommendationPolicy int32
*
Recommendation policy. A policy may be either stable or compact.
const ( RecommendationPolicy_RECOMMENDATIONPOLICY_UNDEFINED RecommendationPolicy = 0 RecommendationPolicy_STABLE RecommendationPolicy = 1 RecommendationPolicy_COMPACT RecommendationPolicy = 2 )
func (RecommendationPolicy) EnumDescriptor ¶
func (RecommendationPolicy) EnumDescriptor() ([]byte, []int)
func (RecommendationPolicy) String ¶
func (x RecommendationPolicy) String() string
Click to show internal directories.
Click to hide internal directories.