conditions

package
v0.0.0-...-29ce5d4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AcceptedReason is added when ProvisioningRequest is accepted by ClusterAutoscaler
	AcceptedReason = "Accepted"
	// AcceptedMsg is added when ProvisioningRequest is accepted by ClusterAutoscaler
	AcceptedMsg = "ProvisioningRequest is accepted by ClusterAutoscaler"
	// CapacityIsNotFoundReason is added when capacity was not found in the cluster.
	CapacityIsNotFoundReason = "CapacityIsNotFound"
	// CapacityIsFoundReason is added when capacity was found in the cluster.
	CapacityIsFoundReason = "CapacityIsFound"
	// CapacityIsFoundMsg is added when capacity was found in the cluster.
	CapacityIsFoundMsg = "Capacity is found in the cluster"
	// CapacityIsProvisionedReason is added when capacity was requested successfully.
	CapacityIsProvisionedReason = "CapacityIsProvisioned"
	// CapacityIsProvisionedMsg is added when capacity was requested successfully.
	CapacityIsProvisionedMsg = "Capacity is found in the cluster"
	// FailedToCheckCapacityReason is added when CA failed to check pre-existing capacity.
	FailedToCheckCapacityReason = "FailedToCheckCapacity"
	// FailedToCheckCapacityMsg is added when CA failed to check pre-existing capacity.
	FailedToCheckCapacityMsg = "Failed to check pre-existing capacity in the cluster"
	// FailedToCreatePodsReason is added when CA failed to create pods for ProvisioningRequest.
	FailedToCreatePodsReason = "FailedToCreatePods"
	// FailedToBookCapacityReason is added when Cluster Autoscaler failed to book capacity in the cluster.
	FailedToBookCapacityReason = "FailedToBookCapacity"
	// CapacityReservationTimeExpiredReason is added whed capacity reservation time is expired.
	CapacityReservationTimeExpiredReason = "CapacityReservationTimeExpired"
	// CapacityReservationTimeExpiredMsg is added if capacity reservation time is expired.
	CapacityReservationTimeExpiredMsg = "Capacity reservation time is expired"
	// ExpiredReason is added if ProvisioningRequest is expired.
	ExpiredReason = "Expired"
	// ExpiredMsg is added if ProvisioningRequest is expired.
	ExpiredMsg = "ProvisioningRequest is expired"
)

Variables

This section is empty.

Functions

func AddOrUpdateCondition

func AddOrUpdateCondition(pr *provreqwrapper.ProvisioningRequest, conditionType string, conditionStatus metav1.ConditionStatus, reason, message string, now metav1.Time)

AddOrUpdateCondition adds a Condition if the condition is not present amond ProvisioningRequest conditions or updte it otherwise.

func ShouldCapacityBeBooked

func ShouldCapacityBeBooked(pr *provreqwrapper.ProvisioningRequest) bool

ShouldCapacityBeBooked returns whether capacity should be booked.

Types

This section is empty.

Jump to

Keyboard shortcuts

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