Skip to content

Commit

Permalink
Bind newest stable non-core components
Browse files Browse the repository at this point in the history
Close #1100
  • Loading branch information
lucklove committed Feb 4, 2021
1 parent 3086dc7 commit 719e60a
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions pkg/cluster/spec/bindversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,11 @@ import (
)

// TiDBComponentVersion maps the TiDB version to the third components binding version
// Empty version should be treate as the the last stable one
func TiDBComponentVersion(comp, version string) string {
switch comp {
case ComponentAlertmanager:
return "v0.17.0"
case ComponentBlackboxExporter:
return "v0.12.0"
case ComponentNodeExporter:
return "v0.17.0"
case ComponentPushwaygate:
return "v0.7.0"
case ComponentCheckCollector:
return "" // empty version should be treate as the the last stable one
case ComponentSpark, ComponentTiSpark:
return "" // empty version should be treate as the the last stable one
case ComponentAlertmanager, ComponentBlackboxExporter, ComponentNodeExporter, ComponentPushwaygate, ComponentCheckCollector, ComponentSpark, ComponentTiSpark:
return ""
default:
return version
}
Expand Down

0 comments on commit 719e60a

Please sign in to comment.