mirror

package
v0.0.0-...-d0441f7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 4 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{}

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

func New

func New() *Rule

New creates a new Rule.

func (Rule) Drainable

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

Drainable decides what to do with mirror 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