conditions

package
v1.0.152 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// TimedOutReason is added in a deployment when its newest replica set fails to show any progress
	// within the given deadline (progressDeadlineSeconds).
	TimedOutReason = "ProgressDeadlineExceeded"
)

Variables

This section is empty.

Functions

func GetDeploymentCondition added in v1.0.148

func GetDeploymentCondition(status appsv1.DeploymentStatus, condType appsv1.DeploymentConditionType) *appsv1.DeploymentCondition

GetDeploymentCondition returns the condition with the provided type.

func UpdateStatusConditions

func UpdateStatusConditions(ctx context.Context, c client.Client, obj client.Object, conditions *[]metav1.Condition,
	status metav1.ConditionStatus, conditionType string, reason string, msg string) error

UpdateStatusConditions updates the status conditions of the object if the passed conditions have changed. conditions is a pointer to the conditions of the object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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