提交 106c2aad 编写于 作者: J jeff

add kubesphere-monitoring-system to system monitoring component

上级 347bfef1
......@@ -28,7 +28,7 @@ import (
)
// Namespaces need to watch
var SYSTEM_NAMESPACES = [...]string{"kubesphere-system", "openpitrix-system", "kube-system"}
var SYSTEM_NAMESPACES = [...]string{"kubesphere-system", "openpitrix-system", "kube-system", "kubesphere-monitoring-system"}
type Component struct {
Name string `json:"name"`
......@@ -134,7 +134,9 @@ func GetAllComponentsStatus() (map[string]interface{}, error) {
nsStatus[service.Name] = component
}
status[ns] = nsStatus
if len(nsStatus) > 0 {
status[ns] = nsStatus
}
}
return status, err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册