processor

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvSkipTransitionRules = "SKIP_POD_TRANSITION_RULES"
)

Variables

View Source
var (
	SkipTransitionRules = sets.NewString()
)

Functions

This section is empty.

Types

type ProcessResult

type ProcessResult struct {
	Rejected map[string]RejectInfo
	// pod:rules
	PassRules map[string]sets.String
	Retry     bool
	Interval  *time.Duration

	RuleStates []*appsv1alpha1.RuleState
}

type Processor

type Processor struct {
	register.Policy
	logr.Logger
	// contains filtered or unexported fields
}

func NewRuleProcessor

func NewRuleProcessor(client client.Client, stage string, podTransitionRule *appsv1alpha1.PodTransitionRule, log logr.Logger) *Processor

func (*Processor) Process

func (p *Processor) Process(targets map[string]*corev1.Pod) *ProcessResult

type RejectInfo

type RejectInfo struct {
	RuleName string
	Reason   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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