Merge pull request #215 from zryfish/add_monitoring_to_system_components

add kubesphere-monitoring-system to system monitoring component
This commit is contained in:
zryfish
2018-11-28 14:39:55 +08:00
committed by GitHub

View File

@@ -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