mirror of
https://github.com/rancher/types.git
synced 2025-09-01 05:09:10 +00:00
Fix namespace attribute on native types
This commit is contained in:
@@ -42,10 +42,14 @@ var conditionMappings = []conditionMapping{
|
||||
{Name: "KernelHasNoDeadlock", Error: true, FalseIsGood: true},
|
||||
{Name: "Unschedulable", Error: true, FalseIsGood: true},
|
||||
{Name: "ReplicaFailure", Error: true, FalseIsGood: true},
|
||||
{Name: "Ready", Transition: false, State: "unavailable"},
|
||||
{Name: "Ready", Transition: false, State: "activating"},
|
||||
}
|
||||
|
||||
func Set(data map[string]interface{}) {
|
||||
if data == nil {
|
||||
return
|
||||
}
|
||||
|
||||
val, ok := values.GetValue(data, "metadata", "removed")
|
||||
if ok && val != "" && val != nil {
|
||||
data["state"] = "removing"
|
||||
|
Reference in New Issue
Block a user