Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: force rds for ghost (#12686)
Danny Xu0b06916303d0
diff --git a/backend/component/ghost/config.go b/backend/component/ghost/config.goindex 0927361f71..44e3d2039a 100644--- a/backend/component/ghost/config.go+++ b/backend/component/ghost/config.go@@ -61,9 +61,6 @@ type UserFlags struct {assumeRBR *boolheartbeatIntervalMillis *int64niceRatio *float64- aliyunRDS *bool- azure *bool- gcp *bool}var knownKeys = map[string]bool{@@ -79,9 +76,6 @@ var knownKeys = map[string]bool{"assume-rbr": true,"heartbeat-interval-millis": true,"nice-ratio": true,- "aliyun-rds": true,- "azure": true,- "gcp": true,}func GetUserFlags(flags map[string]string) (*UserFlags, error) {@@ -179,27 +173,6 @@ func GetUserFlags(flags map[string]string) (*UserFlags, error) {}f.niceRatio = &niceRatio}- if v, ok := flags["aliyun-rds"]; ok {- aliyunRDS, err := strconv.ParseBool(v)- if err != nil {- return nil, errors.Wrapf(err, "failed to convert aliyun-rds %q to bool", v)- }- f.aliyunRDS = &aliyunRDS- }- if v, ok := flags["azure"]; ok {- azure, err := strconv.ParseBool(v)- if err != nil {- return nil, errors.Wrapf(err, "failed to convert azure %q to bool", v)- }- f.azure = &azure- }- if v, ok := flags["gcp"]; ok {- gcp, err := strconv.ParseBool(v)- if err != nil {- return nil, errors.Wrapf(err, "failed to convert gcp %q to bool", v)- }- f.gcp = &gcp- }return f, nil}@@ -340,15 +313,8 @@ func NewMigrationContext(ctx context.Context, taskID int, taskCreatedTs int64, dif v := userFlags.niceRatio; v != nil {migrationContext.SetNiceRatio(*v)}- if v := userFlags.aliyunRDS; v != nil {- migrationContext.AliyunRDS = *v- }- if v := userFlags.azure; v != nil {- migrationContext.AzureMySQL = *v- }- if v := userFlags.gcp; v != nil {- migrationContext.GoogleCloudPlatform = *v- }+ // Uses specified port. GCP, Aliyun, Azure are equivalent here.+ migrationContext.GoogleCloudPlatform = trueif migrationContext.SwitchToRowBinlogFormat && migrationContext.AssumeRBR {return nil, errors.Errorf("switchToRBR and assumeRBR are mutually exclusive")diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/FlagsForm/constants.ts b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/FlagsForm/constants.tsindex 03f01f2d05..28a543dcbc 100644--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/FlagsForm/constants.ts+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/FlagsForm/constants.ts@@ -19,9 +19,6 @@ export const SupportedGhostParameters: GhostParameter[] = [{ key: "assume-rbr", type: "bool", defaults: "false" },{ key: "heart-beat-interval-millis", type: "int", defaults: "100" },{ key: "nice-ratio", type: "float", defaults: "0" },- { key: "aliyun-rds", type: "bool", defaults: "false" },- { key: "azure", type: "bool", defaults: "false" },- { key: "gcp", type: "bool", defaults: "false" },];export const isBoolParameter = (