Skip to content

Commit be844e3

Browse files
author
xiejingru
authored
add module and remove redundant field (#255)
1 parent 227c714 commit be844e3

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

spec/v1/module.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package v1
22

33
const (
4-
BaetylInit = "baetyl-init"
5-
BaetylCore = "baetyl-core"
6-
BaetylBroker = "baetyl-broker"
7-
BaetylFunction = "baetyl-function"
8-
BaetylRule = "baetyl-rule"
9-
BaetylAgent = "baetyl-agent"
10-
BaetylLog = "baetyl-log"
4+
BaetylInit = "baetyl-init"
5+
BaetylCore = "baetyl-core"
6+
BaetylBroker = "baetyl-broker"
7+
BaetylFunction = "baetyl-function"
8+
BaetylRule = "baetyl-rule"
9+
BaetylAgent = "baetyl-agent"
10+
BaetylLog = "baetyl-log"
11+
BaetylGPUMetrics = "baetyl-gpu-metrics"
1112
)

spec/v1/node.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ type Node struct {
6565
Accelerator string `json:"accelerator,omitempty" yaml:"accelerator,omitempty"`
6666
Mode SyncMode `json:"mode,omitempty" yaml:"mode,omitempty"`
6767
Cluster bool `json:"cluster,omitempty" yaml:"cluster,omitempty"`
68-
GPUMetrics bool `json:"gpuMetrics"`
6968
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty" validate:"omitempty,validLabels"`
7069
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
7170
Attributes map[string]interface{} `json:"attr,omitempty" yaml:"attr,omitempty"`
@@ -90,7 +89,6 @@ type NodeView struct {
9089
Description string `json:"description,omitempty" yaml:"description,omitempty"`
9190
Cluster bool `json:"cluster" yaml:"cluster"`
9291
Ready bool `json:"ready"`
93-
GPUMetrics bool `json:"gpuMetrics"`
9492
Mode SyncMode `json:"mode"`
9593
}
9694

0 commit comments

Comments
 (0)