strategy

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsActive

func IsActive(po *corev1.Pod) bool

Types

type Controller

type Controller interface {
	Updater
	Reader
	source.SyncingSource
	// RegisterGenericEventChannel registers a channel to listen for changes associated with the CollaSet.
	RegisterGenericEventChannel(chan<- event.GenericEvent)
	// InjectClient inject manager client into Controller
	InjectClient(client.Client) error
}
var SharedStrategyController Controller

type Reader

type Reader interface {
	// LatestPodDecorations are a set of the most recent PodDecorations in the namespace.
	LatestPodDecorations(namespace string) []*appsv1alpha1.PodDecoration
	// EffectivePodRevisions is used to select the suitable version from the UpdatedRevision
	// and CurrentRevision among a set of the latest Decorations.
	EffectivePodRevisions(*corev1.Pod) (updatedRevisions, stableRevisions map[string]string)
}

type Updater

type Updater interface {
	// Synced indicates that all PodDecoration managers were updated.
	Synced()
	// UpdateSelectedPods is used to update the effective Pods of PodDecoration
	// to make real-time decisions about the PodDecoration version for each Pod.
	UpdateSelectedPods(context.Context, *appsv1alpha1.PodDecoration, []*corev1.Pod) error
	// DeletePodDecoration clean up invalid PodDecoration manager.
	DeletePodDecoration(*appsv1alpha1.PodDecoration)
}

Jump to

Keyboard shortcuts

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