From 3c6d1ba9b81a333a88b31a5c126801ddcb71d39a Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Tue, 30 Jan 2018 08:52:55 -0700 Subject: [PATCH] Only do initializing for rancher types --- status/status.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/status/status.go b/status/status.go index dfd9bab8..8664f639 100644 --- a/status/status.go +++ b/status/status.go @@ -181,7 +181,8 @@ func Set(data map[string]interface{}) { } } - if state == "" && len(conditions) == 0 { + apiVersion, _ := values.GetValueN(data, "apiVersion").(string) + if state == "" && len(conditions) == 0 && strings.Contains(apiVersion, "cattle.io") { if val, ok := values.GetValue(data, "metadata", "created"); ok { if i, err := convert.ToTimestamp(val); err == nil { if time.Unix(i/1000, 0).Add(5 * time.Second).After(time.Now()) {