Skip to content

Commit

Permalink
fips: adjust version suffix (#5514)
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Shen <[email protected]>
  • Loading branch information
overvenus authored Jan 12, 2024
1 parent cb20f33 commit 19dd0ca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions pkg/fips/fips.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,4 @@ package fips
import (
// Restricts all TLS configuration to FIPS-approved settings
_ "crypto/tls/fipsonly"

"github.com/pingcap/tidb-operator/pkg/version"
)

func init() {
version.SetVersionSuffix("-fips")
}
5 changes: 0 additions & 5 deletions pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ var (
buildDate = "1970-01-01T00:00:00Z" // build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ')
)

// SetVersionSuffix sets version suffix.
func SetVersionSuffix(suffix string) {
gitVersion += suffix
}

// PrintVersionInfo show version info to Stdout
func PrintVersionInfo() {
fmt.Printf("TiDB Operator Version: %#v\n", Get())
Expand Down

0 comments on commit 19dd0ca

Please sign in to comment.