Skip to content

Commit

Permalink
cluster: update dashboard metadata on reload (#1003)
Browse files Browse the repository at this point in the history
* cluster: update dashboard metadata on reload

* only reload for tidb cluster

Co-authored-by: SIGSEGV <[email protected]>
Co-authored-by: Ti Prow Robot <[email protected]>
  • Loading branch information
3 people authored Dec 28, 2020
1 parent ac3f756 commit b693df4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkg/cluster/manager/reload.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,16 @@ func (m *Manager) Reload(name string, opt operator.Options, skipRestart bool) er
}
}

tb := m.sshTaskBuilder(name, topo, base.User, opt).
ParallelStep("+ Refresh instance configs", opt.Force, refreshConfigTasks...)
tb := m.sshTaskBuilder(name, topo, base.User, opt)
if topo.Type() == spec.TopoTypeTiDB {
tb = tb.UpdateTopology(
name,
m.specManager.Path(name),
metadata.(*spec.ClusterMeta),
nil, /* deleteNodeIds */
)
}
tb = tb.ParallelStep("+ Refresh instance configs", opt.Force, refreshConfigTasks...)

if len(monitorConfigTasks) > 0 {
tb = tb.ParallelStep("+ Refresh monitor configs", opt.Force, monitorConfigTasks...)
Expand Down

0 comments on commit b693df4

Please sign in to comment.