Skip to content

Commit

Permalink
Save
Browse files Browse the repository at this point in the history
  • Loading branch information
lucklove committed Feb 22, 2021
1 parent 30b7746 commit 1c7cd6f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
7 changes: 3 additions & 4 deletions components/dm/spec/bindversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ package spec
import "github.com/pingcap/tiup/pkg/cluster/spec"

// DMComponentVersion maps the dm version to the third components binding version
// Empty version means the latest stable one
func DMComponentVersion(comp, version string) string {
switch comp {
case spec.ComponentAlertmanager:
return "v0.17.0"
case spec.ComponentGrafana, spec.ComponentPrometheus:
return "v4.0.3"
case spec.ComponentAlertmanager, spec.ComponentGrafana, spec.ComponentPrometheus:
return ""
default:
return version
}
Expand Down
Loading

0 comments on commit 1c7cd6f

Please sign in to comment.