rotation

package
v0.0.0-...-540bb61 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerName  = "name"
	ContainerImage = "image"
)

Variables

This section is empty.

Functions

func CheckPossible

func CheckPossible(member api.MemberStatus) bool

CheckPossible returns true if rotation is possible

Types

type Mode

type Mode int
const (
	SkippedRotation Mode = iota
	// SilentRotation Propagates changes without restart. Returned plan is executed in High actions
	SilentRotation
	// InPlaceRotation Silently accept changes. Returned plan is executed in Normal actions
	InPlaceRotation
	// GracefulRotation Schedule pod restart. Returned plan is ignored
	GracefulRotation
	// EnforcedRotation Enforce pod restart. Returned plan is ignored
	EnforcedRotation
)

func IsRotationRequired

func IsRotationRequired(acs sutil.ACS, spec api.DeploymentSpec, member api.MemberStatus, group api.ServerGroup, pod *core.Pod, specTemplate, statusTemplate *api.ArangoMemberPodTemplate) (mode Mode, plan api.Plan, specChecksum string, reason string, err error)

func (Mode) And

func (m Mode) And(b Mode) Mode

And returns the higher value of the rotation mode.

Jump to

Keyboard shortcuts

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