mirror of
https://github.com/rancher/types.git
synced 2025-06-27 05:56:50 +00:00
Cluster conditions
For creating a default project and assigning the default namespace to it
This commit is contained in:
parent
f03c946987
commit
e5890bff08
@ -17,6 +17,10 @@ const (
|
||||
ClusterConditionNoDiskPressure condition.Cond = "NoDiskPressure"
|
||||
// ClusterConditionNoMemoryPressure true when all cluster nodes have sufficient memory
|
||||
ClusterConditionNoMemoryPressure condition.Cond = "NoMemoryPressure"
|
||||
// ClusterConditionconditionDefautlProjectCreated true when default project has been created
|
||||
ClusterConditionconditionDefautlProjectCreated condition.Cond = "DefaultProjectCreated"
|
||||
// ClusterCondictionDefaultNamespaceAssigned true when cluster's default namespace has been initially assigned
|
||||
ClusterConditionDefaultNamespaceAssigned condition.Cond = "DefaultNamespaceAssigned"
|
||||
// More conditions can be added if unredlying controllers request it
|
||||
)
|
||||
|
||||
|
@ -45,6 +45,8 @@ var conditionMappings = []conditionMapping{
|
||||
{Name: "Ready", Transition: false, State: "activating"},
|
||||
{Name: "BackingNamespaceCreated", Transition: true, State: "activating"},
|
||||
{Name: "CreatorMadeOwner", Transition: true, State: "activating"},
|
||||
{Name: "DefaultProjectCreated", Transition: true, State: "activating"},
|
||||
{Name: "DefaultNamespaceAssigned", Transition: true, State: "activating"},
|
||||
}
|
||||
|
||||
func Set(data map[string]interface{}) {
|
||||
|
Loading…
Reference in New Issue
Block a user