workload

package
v0.0.0-...-64e8fac Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resources = make([]regioninformers.Resource, 0, 16)

Functions

func LoopAbilities

func LoopAbilities(handlers ...Handler)

func ObjIntoPod

func ObjIntoPod(objs ...runtime.Object) []corev1.Pod

func ObjUnmarshal

func ObjUnmarshal(obj runtime.Object, container interface{}) error

func Register

func Register(ability Workload, gvrs ...schema.GroupVersionResource)

Types

type GreyscaleReleaser

type GreyscaleReleaser interface {
	Workload
	GetSteps(node *v1alpha1.ResourceNode, client *kube.Client) (*Step, error)
}

type Handler

type Handler func(workload Workload) bool

type HealthStatusGetter

type HealthStatusGetter interface {
	Workload
	IsHealthy(node *v1alpha1.ResourceNode, client *kube.Client) (bool, error)
}

type PodsLister

type PodsLister interface {
	Workload
	ListPods(node *v1alpha1.ResourceNode,
		factory dynamicinformer.DynamicSharedInformerFactory) ([]corev1.Pod, error)
}

type Revision

type Revision struct {
	Name string
	Pods []v1.Pod
}

type Step

type Step struct {
	Index        int
	Total        int
	Replicas     []int
	ManualPaused bool
	AutoPromote  bool
	Extra        *string
}

type Workload

type Workload interface {
	MatchGK(gk schema.GroupKind) bool
	Action(aName string, un *unstructured.Unstructured) (*unstructured.Unstructured, error)
}

func GetAbility

func GetAbility(gk schema.GroupKind) (Workload, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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