Skip to content

Commit

Permalink
Update pkg/autoscaler/autoscaler/util.go
Browse files Browse the repository at this point in the history
Co-Authored-By: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>
  • Loading branch information
Yisaer and DanielZhangQD authored Feb 24, 2020
1 parent bcef34c commit 21dc6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/autoscaler/autoscaler/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func checkAndUpdateTacAnn(tac *v1alpha1.TidbClusterAutoScaler) {

func genMetricsEndpoint(tac *v1alpha1.TidbClusterAutoScaler) (string, error) {
if tac.Spec.MetricsUrl == nil && tac.Spec.Monitor == nil {
return "", fmt.Errorf("tac[%s/%s]' metrics url or monitor should be defined explicitly", tac.Namespace, tac.Name)
return "", fmt.Errorf("tac[%s/%s] metrics url or monitor should be defined explicitly", tac.Namespace, tac.Name)
}
conn := ""
if tac.Spec.Monitor != nil {
Expand Down

0 comments on commit 21dc6d8

Please sign in to comment.