conditionsutil

package
v0.33.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ReasonSuccess            = "Success"
	ReasonNotReady           = "NotReady"
	ReasonUnableToValidate   = "UnableToValidate"
	ReasonUnableToDialServer = "UnableToDialServer"
	ReasonInvalidIssuerURL   = "InvalidIssuerURL"

	MessageUnableToValidate = "unable to validate; see other conditions for details"
)

Some common reasons and messages shared by conditions of various resources.

Variables

This section is empty.

Functions

func HadErrorCondition added in v0.29.0

func HadErrorCondition(conditions []*metav1.Condition) bool

func MergeConditions added in v0.31.0

func MergeConditions(
	conditions []*metav1.Condition,
	observedGeneration int64,
	conditionsToUpdate *[]metav1.Condition,
	log plog.MinLogger,
	lastTransitionTime metav1.Time,
) bool

MergeConditions merges conditions into conditionsToUpdate. Note that LastTransitionTime refers to the time when the status changed, but ObservedGeneration should be the current generation for all conditions, since Pinniped should always check every condition. It returns true if any resulting condition has non-true status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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