mirror of
https://github.com/rancher/types.git
synced 2025-09-13 21:40:14 +00:00
Cluster conditions
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package v3
|
||||
|
||||
import (
|
||||
"github.com/rancher/norman/condition"
|
||||
"k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
@@ -9,15 +10,13 @@ type ClusterConditionType string
|
||||
|
||||
const (
|
||||
// ClusterConditionReady Cluster ready to serve API (healthy when true, unehalthy when false)
|
||||
ClusterConditionReady = "Ready"
|
||||
ClusterConditionReady condition.Cond = "Ready"
|
||||
// ClusterConditionProvisioned Cluster is provisioned
|
||||
ClusterConditionProvisioned = "Provisioned"
|
||||
// ClusterConditionUpdating Cluster is being updating (upgrading, scaling up)
|
||||
ClusterConditionUpdating = "Updating"
|
||||
ClusterConditionProvisioned condition.Cond = "Provisioned"
|
||||
// ClusterConditionNoDiskPressure true when all cluster nodes have sufficient disk
|
||||
ClusterConditionNoDiskPressure = "NoDiskPressure"
|
||||
ClusterConditionNoDiskPressure condition.Cond = "NoDiskPressure"
|
||||
// ClusterConditionNoMemoryPressure true when all cluster nodes have sufficient memory
|
||||
ClusterConditionNoMemoryPressure = "NoMemoryPressure"
|
||||
ClusterConditionNoMemoryPressure condition.Cond = "NoMemoryPressure"
|
||||
// More conditions can be added if unredlying controllers request it
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user