mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-01 03:07:51 +08:00
[ADD] add test code
This commit is contained in:
parent
f757b07add
commit
38664596b5
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user