Skip to content

Commit

Permalink
cluster: fix wrong status when display due to closure (#1742)
Browse files Browse the repository at this point in the history
  • Loading branch information
nexustar authored Jan 27, 2022
1 parent 5a7693d commit 44ceb86
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cluster/spec/alertmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func (c *AlertManagerComponent) Instances() []Instance {
ins := make([]Instance, 0, len(alertmanagers))

for _, s := range alertmanagers {
s := s
ins = append(ins, &AlertManagerInstance{
BaseInstance: BaseInstance{
InstanceSpec: s,
Expand Down
1 change: 1 addition & 0 deletions pkg/cluster/spec/grafana.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func (c *GrafanaComponent) Instances() []Instance {
ins := make([]Instance, 0, len(servers))

for _, s := range servers {
s := s
ins = append(ins, &GrafanaInstance{
BaseInstance: BaseInstance{
InstanceSpec: s,
Expand Down
1 change: 1 addition & 0 deletions pkg/cluster/spec/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func (c *MonitorComponent) Instances() []Instance {
ins := make([]Instance, 0, len(servers))

for _, s := range servers {
s := s
mi := &MonitorInstance{BaseInstance{
InstanceSpec: s,
Name: c.Name(),
Expand Down
1 change: 1 addition & 0 deletions pkg/cluster/spec/tispark.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func (c *TiSparkMasterComponent) Role() string {
func (c *TiSparkMasterComponent) Instances() []Instance {
ins := make([]Instance, 0, len(c.Topology.TiSparkMasters))
for _, s := range c.Topology.TiSparkMasters {
s := s
ins = append(ins, &TiSparkMasterInstance{
BaseInstance: BaseInstance{
InstanceSpec: s,
Expand Down

0 comments on commit 44ceb86

Please sign in to comment.