1
0
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:
Darren Shepherd
2017-12-19 21:47:20 -07:00
parent fe47f6246e
commit bb9f169d59
5 changed files with 36 additions and 12 deletions

View File

@@ -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"