sync

package
v0.0.0-...-209ba2c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPodAvailable

func IsPodAvailable(coreControl fuxicore.Control, pod *v1.Pod, minReadySeconds int32) bool

func SortUpdateIndexes

func SortUpdateIndexes(coreControl fuxicore.Control, strategy fuxiv1alpha1.FuxiUpdateStrategy, pods []*v1.Pod, waitUpdateIndexes []int) []int

Types

type Interface

type Interface interface {
	Scale(currentCS, updateCS *fuxiv1alpha1.Fuxi, currentRevision, updateRevision string, pods []*v1.Pod) (bool, error)
	Update(cs *fuxiv1alpha1.Fuxi, currentRevision, updateRevision *apps.ControllerRevision, revisions []*apps.ControllerRevision, pods []*v1.Pod) error
}

Interface for managing pods scaling and updating.

func New

func New(c client.Client, recorder record.EventRecorder) Interface

Jump to

Keyboard shortcuts

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