diff --git a/components/dm/spec/bindversion.go b/components/dm/spec/bindversion.go index 5b532c48df..5464c952dc 100644 --- a/components/dm/spec/bindversion.go +++ b/components/dm/spec/bindversion.go @@ -6,7 +6,9 @@ import "github.com/pingcap/tiup/pkg/cluster/spec" // Empty version means the latest stable one func DMComponentVersion(comp, version string) string { switch comp { - case spec.ComponentAlertmanager, spec.ComponentGrafana, spec.ComponentPrometheus: + case spec.ComponentAlertmanager, + spec.ComponentGrafana, + spec.ComponentPrometheus: return "" default: return version diff --git a/pkg/cluster/spec/bindversion.go b/pkg/cluster/spec/bindversion.go index e1ae82aa37..61be4e8212 100644 --- a/pkg/cluster/spec/bindversion.go +++ b/pkg/cluster/spec/bindversion.go @@ -22,7 +22,13 @@ import ( // Empty version should be treate as the the last stable one func TiDBComponentVersion(comp, version string) string { switch comp { - case ComponentAlertmanager, ComponentBlackboxExporter, ComponentNodeExporter, ComponentPushwaygate, ComponentCheckCollector, ComponentSpark, ComponentTiSpark: + case ComponentAlertmanager, + ComponentBlackboxExporter, + ComponentNodeExporter, + ComponentPushwaygate, + ComponentCheckCollector, + ComponentSpark, + ComponentTiSpark: return "" default: return version