Versions in this module Expand all Collapse all v0 v0.1.1 Mar 14, 2023 v0.1.0 Mar 14, 2023 Changes in this version + const ErrReasonCloneset + const ErrReasonExcludeNode + const ErrReasonFailedScaleDown + const ErrReasonMasterNode + const ErrReasonMirrorPod + const ErrReasonNotReadyNode + const ErrReasonScaleDownDisabled + const ErrReasonStaticPod + const ErrReasonSuccessScaleDown + const ErrReasonTaintNode + const ErrReasonUnknown + const ErrReasonVolumePod + const FailedSelectNode + const KubernetesMasterNodeLabel + const NodeScaleDownDisableLabel + const NodeScaledDownFailedLabel + const NodeScaledDownSuccessLabel + func NewCCSimulatorExecutor(conf *options.ClusterCompressionConfig) (pkg.Simulator, error) + type ClusterCompressionReview struct + Status ClusterCompressionReviewReviewStatus + func (r *ClusterCompressionReview) Print(verbose bool, format string) error + type ClusterCompressionReviewReviewStatus struct + CreationTimestamp time.Time + FailedSchedulerCount int + ScaleDownNodeNames []string + SchedulerCount int + SelectNodeCount int + StopReason *ClusterCompressionReviewScheduleStopReason + type ClusterCompressionReviewScheduleStopReason struct + StopMessage string + StopType string + type FilterFunc func(*corev1.Node) *FilterStatus + type FilterStatus struct + ErrReason string + Success bool + type NodeFilter interface + Done func() + SelectNode func() *Status + func NewNodeFilter(client clientset.Interface, getPodsByNode PodsByNodeFunc, ...) (NodeFilter, error) + type Options struct + func NewOptions() *Options + func (o *Options) BuildFilterFunc() FilterFunc + func (o *Options) WithExcludeNodes(nodes map[string]bool) *Options + func (o *Options) WithExcludeNotReadyNodes(excludeNotReadyNode bool) *Options + func (o *Options) WithExcludeTaintNodes(excludeTaintNode bool) *Options + func (o *Options) WithFilter(filter FilterFunc) *Options + func (o *Options) WithIgnoreCloneSet(ignoreCloneSet bool) *Options + func (o *Options) WithIgnoreMirrorPod(ignoreMirrorPod bool) *Options + func (o *Options) WithIgnoreStaticPod(ignoreStaticPod bool) *Options + func (o *Options) WithIgnoreVolumePod(ignoreVolumePod bool) *Options + func (o *Options) WithPodsByNodeFunc(podsByNodeFunc PodsByNodeFunc) *Options + type PodsByNodeFunc func(name string) ([]*corev1.Pod, error) + type Status struct + ErrReason string + Node *corev1.Node