diff --git a/pkg/fips/fips.go b/pkg/fips/fips.go index b8f166992a5..d96ab58a875 100644 --- a/pkg/fips/fips.go +++ b/pkg/fips/fips.go @@ -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") -} diff --git a/pkg/version/version.go b/pkg/version/version.go index 63ef0b14f6f..2fd0342f7d7 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -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())