From 38664596b5245482ce108be90bc776b84460b319 Mon Sep 17 00:00:00 2001 From: zhoujunhao <18853925545@163.com> Date: Wed, 13 Jun 2018 18:20:02 +0800 Subject: [PATCH] [ADD] add test code --- appruntimesync/clean/clean.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appruntimesync/clean/clean.go b/appruntimesync/clean/clean.go index 395eb1d08..7ec36476a 100644 --- a/appruntimesync/clean/clean.go +++ b/appruntimesync/clean/clean.go @@ -259,12 +259,14 @@ func queryStatefulResource(m *Manager) []Resource { } } + fmt.Println(StatefulSetsMap) for k, valuse := range StatefulSetsMap { StatefulSetsList, err := m.kubeclient.StatefulSets(k).List(meta_v1.ListOptions{}) if err != nil { logrus.Error(err) } for _, v := range StatefulSetsList.Items { + fmt.Println(v.Namespace,v.Name) if InSlice(v.Name, valuse) { s := &statefulResource{ createTime: time.Now(),