conditions

package
v0.0.0-...-ef6dcbe 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: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCondition

func SetCondition(conditions *[]metav1.Condition, conditionType ConditionType, status metav1.ConditionStatus, reason ConditionReason)

SetCondition creates a new condition with the given conditionType, status and reason. Then, it sets this new condition, unsetting previous conditions with the same type as necessary.

func SetConditionWithMessage

func SetConditionWithMessage(conditions *[]metav1.Condition, conditionType ConditionType, status metav1.ConditionStatus, reason ConditionReason, message string)

SetConditionWithMessage creates a new condition with the given conditionType, status, reason and message. Then, it sets this new condition, unsetting previous conditions with the same type as necessary.

Types

type ConditionReason

type ConditionReason string

ConditionReason is a string representing a Kubernetes condition reason.

func (ConditionReason) String

func (cr ConditionReason) String() string

type ConditionType

type ConditionType string

ConditionType is a string representing a Kubernetes condition type.

func (ConditionType) String

func (ct ConditionType) String() string

String returns a string representation of the ConditionType.

Jump to

Keyboard shortcuts

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