utils

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ControllerKind              = fuxiv1alpha1.SchemeGroupVersion.WithKind("Fuxi")
	ScaleExpectations           = expectations.NewScaleExpectations()
	ResourceVersionExpectations = expectations.NewResourceVersionExpectation()
	RevisionAdapterImpl         = &revisionAdapterImpl{}
	EqualToRevisionHash         = RevisionAdapterImpl.EqualToRevisionHash
	DurationStore               = requeueduration.DurationStore{}
)

Functions

func DoItSlowly

func DoItSlowly(count int, initialBatchSize int, fn func() error) (int, error)

func GetActiveAndInactivePods

func GetActiveAndInactivePods(reader client.Reader, opts *client.ListOptions) ([]*v1.Pod, []*v1.Pod, error)

func GetControllerKey

func GetControllerKey(cs *fuxiv1alpha1.Fuxi) string

func GetShortHash

func GetShortHash(hash string) string

func NextRevision

func NextRevision(revisions []*apps.ControllerRevision) int64

func SplitPodsByRevision

func SplitPodsByRevision(pods []*v1.Pod, rev string) (matched, unmatched []*v1.Pod)

Types

This section is empty.

Jump to

Keyboard shortcuts

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