replicacount

package
v0.0.0-...-5ae08a9 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	// contains filtered or unexported fields
}

Rule is a drainability rule on how to handle replicated pods.

func New

func New(minReplicaCount int) *Rule

New creates a new Rule.

func (*Rule) Drainable

func (r *Rule) Drainable(drainCtx *drainability.DrainContext, pod *apiv1.Pod, _ *framework.NodeInfo) drainability.Status

Drainable decides what to do with replicated pods on node drain.

func (*Rule) Name

func (r *Rule) Name() string

Name returns the name of the rule.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL