add get drain status api

This commit is contained in:
yanmingfan
2018-06-19 16:37:10 +08:00
parent 0c7cf180fc
commit d42cbd8258
3 changed files with 223 additions and 36 deletions

View File

@@ -43,7 +43,7 @@ type Components struct {
SelfLink string `json:"selfLink"`
Label interface{} `json:"label"`
HealthStatus string `json:"healthStatus"`
CreateTime time.Time `json:"updateTime"`
CreateTime time.Time `json:"createTime"`
}
/***
@@ -173,7 +173,6 @@ func GetComponentsByNamespace(ns string) ([]Components, error) {
if ns != KUBESYSTEM {
option.LabelSelector = ""
}
servicelists, err := k8sClient.CoreV1().Services(ns).List(option)
if err != nil {