utils

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PodVersionExpectation               = expectation.NewResourceVersionExpectation()
	PodTransitionRuleVersionExpectation = expectation.NewResourceVersionExpectation()
)

Functions

func GetPodPassedRules

func GetPodPassedRules(podName string, podtransitionrule *appsv1alpha1.PodTransitionRule) (rules sets.String)

func HasSkipRule

func HasSkipRule(po *corev1.Pod, ruleName string) (bool, error)

func IsPodPassRule

func IsPodPassRule(podName string, podtransitionrule *appsv1alpha1.PodTransitionRule, rule string) bool

func MoveAllPodTransitionRuleInfo

func MoveAllPodTransitionRuleInfo(po *corev1.Pod, podtransitionruleName string) bool

func MoveDetailAnno

func MoveDetailAnno(po *corev1.Pod, podtransitionruleName string) bool

MoveDetailAnno move PodTransitionRule detail annotation podtransitionrule.kusionstack.io/detail-${podTransitionRuleName}

Types

type PodSkipRuleConditions

type PodSkipRuleConditions struct {
	SkipRules []string `json:"skipRules,omitempty"`
}

type Rules

func (Rules) Len

func (e Rules) Len() int

func (Rules) Less

func (e Rules) Less(i, j int) bool

func (Rules) Swap

func (e Rules) Swap(i, j int)

Jump to

Keyboard shortcuts

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