Documentation ¶
Index ¶
- func NewCESimulatorExecutor(conf *options.CapacityEstimationConfig) (pkg.Simulator, error)
- type CapacityEstimationReview
- type CapacityEstimationReviewResult
- type CapacityEstimationReviewScheduleStopReason
- type CapacityEstimationReviewSpec
- type CapacityEstimationReviewStatus
- type CapacityEstimationReviews
- type PodGenerator
- type ReplicasOnNode
- type Requirements
- type Resources
- type StopReasonSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCESimulatorExecutor ¶
func NewCESimulatorExecutor(conf *options.CapacityEstimationConfig) (pkg.Simulator, error)
NewCESimulatorExecutor create a ce simulator which is completely independent of apiserver so no need for kubeconfig nor for apiserver url
Types ¶
type CapacityEstimationReview ¶
type CapacityEstimationReview struct { metav1.TypeMeta Spec CapacityEstimationReviewSpec `json:"spec"` Status CapacityEstimationReviewStatus `json:"status"` }
type CapacityEstimationReviewResult ¶
type CapacityEstimationReviewResult struct { PodName string `json:"podName"` // numbers of replicas on nodes ReplicasOnNodes []*ReplicasOnNode `json:"replicasOnNodes"` // reason why no more pods could schedule (if any on this node) Summary []StopReasonSummary `json:"summary"` }
type CapacityEstimationReviewSpec ¶
type CapacityEstimationReviewSpec struct { // the pod desired for scheduling Templates []corev1.Pod `json:"templates"` PodRequirements []*Requirements `json:"podRequirements"` }
type CapacityEstimationReviewStatus ¶
type CapacityEstimationReviewStatus struct { CreationTimestamp time.Time `json:"creationTimestamp"` // actual number of replicas that could schedule Replicas int32 `json:"replicas"` StopReason *CapacityEstimationReviewScheduleStopReason `json:"stopReason"` // per node information about the scheduling simulation Pods []*CapacityEstimationReviewResult `json:"pods"` }
type CapacityEstimationReviews ¶
type CapacityEstimationReviews []*CapacityEstimationReview
type PodGenerator ¶
func NewSinglePodGenerator ¶
func NewSinglePodGenerator(podTemplate *corev1.Pod) PodGenerator
type ReplicasOnNode ¶
type Requirements ¶
type Resources ¶
type Resources struct { PrimaryResources corev1.ResourceList `json:"primaryResources"` ScalarResources map[corev1.ResourceName]int64 `json:"scalarResources"` }
type StopReasonSummary ¶
Click to show internal directories.
Click to hide internal directories.