condition

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package condition provides condition related utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualCondition

func EqualCondition(current, desired *metav1.Condition) bool

EqualCondition compares one condition with another; it ignores the LastTransitionTime and Message fields, and will consider the ObservedGeneration values from the two conditions a match if the current condition is newer.

func EqualConditionIgnoreReason

func EqualConditionIgnoreReason(current, desired *metav1.Condition) bool

EqualConditionIgnoreReason compares one condition with another; it ignores the Reason, LastTransitionTime, and Message fields, and will consider the ObservedGeneration values from the two conditions a match if the current condition is newer.

func IsConditionStatusFalse added in v0.7.11

func IsConditionStatusFalse(cond *metav1.Condition, latestGeneration int64) bool

IsConditionStatusFalse returns true if the condition is false and the observed generation matches the latest generation.

func IsConditionStatusTrue added in v0.6.8

func IsConditionStatusTrue(cond *metav1.Condition, latestGeneration int64) bool

IsConditionStatusTrue returns true if the condition is true and the observed generation matches the latest generation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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