fix bug for node metrics on overview page

Signed-off-by: zhu733756 <talonzhu@yunify.com>
This commit is contained in:
zhu733756
2021-04-12 13:49:38 +08:00
parent 26e5c31d8f
commit f49a9c1620
4 changed files with 17 additions and 3 deletions

View File

@@ -67,6 +67,7 @@ type QueryOptions struct {
Level Level
NamespacedResourcesFilter string
QueryType string
ResourceFilter string
NodeName string
WorkspaceName string
@@ -98,6 +99,7 @@ type NodeOption struct {
NodeName string
PVCFilter string
StorageClassName string
QueryType string
}
func (no NodeOption) Apply(o *QueryOptions) {
@@ -106,6 +108,7 @@ func (no NodeOption) Apply(o *QueryOptions) {
o.NodeName = no.NodeName
o.PVCFilter = no.PVCFilter
o.StorageClassName = no.StorageClassName
o.QueryType = no.QueryType
}
type WorkspaceOption struct {