Skip to content

Commit

Permalink
fix TLS validation
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <xw897002528@gmail.com>
  • Loading branch information
xhebox committed Jan 9, 2024
1 parent 100c593 commit 0470547
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/cluster/spec/tiproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,14 @@ func (c *TiProxyComponent) Source() string {

// CalculateVersion implements the Component interface
func (c *TiProxyComponent) CalculateVersion(clusterVersion string) string {
// always not follow global version, use ""(latest) by default
version := c.Topology.ComponentVersions.TiProxy
if version == "" {
version = "nightly"
// always not follow global version
// because tiproxy version is different from clusterVersion
// but "nightly" is effective
if clusterVersion == "nightly" {
version = clusterVersion
}
}
return version
}
Expand Down
1 change: 1 addition & 0 deletions pkg/cluster/spec/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,7 @@ func (s *Specification) validateTLSEnabled() error {
ComponentTiDB,
ComponentTiKV,
ComponentTiFlash,
ComponentTiProxy,
ComponentPump,
ComponentDrainer,
ComponentCDC,
Expand Down

0 comments on commit 0470547

Please sign in to comment.