Skip to content

Commit

Permalink
CICD for commit 3b1698498445ce41ab0f0dcfa6edfbc4e3ffd750
Browse files Browse the repository at this point in the history
  • Loading branch information
cchen-vertica committed Jan 14, 2025
1 parent 29aa24f commit 5bcd870
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 373 deletions.
11 changes: 3 additions & 8 deletions local-libs/vcluster/commands/cluster_command_launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ const (
)

// Flag and key for database replication
//
//nolint:dupl
const (
targetDBNameFlag = "target-db-name"
targetDBNameKey = "targetDBName"
Expand Down Expand Up @@ -217,14 +215,12 @@ var keyEnvVarMap = map[string]string{
tlsModeKey: vclusterTLSModeEnv,
}

//nolint:dupl
const (
createDBSubCmd = "create_db"
stopDBSubCmd = "stop_db"
reviveDBSubCmd = "revive_db"
manageConfigSubCmd = "manage_config"
connectionCmd = "connection"
createConnectionSubCmd = "create"
createConnectionSubCmd = "create_connection"
configRecoverSubCmd = "recover"
configShowSubCmd = "show"
replicationSubCmd = "replication"
Expand Down Expand Up @@ -253,7 +249,6 @@ const (
saveRestorePointsSubCmd = "save_restore_point"
getDrainingStatusSubCmd = "get_draining_status"
upgradeLicenseCmd = "upgrade_license"
checkConnectionSubCmd = "check"
)

// cmdGlobals holds global variables shared by multiple
Expand Down Expand Up @@ -491,7 +486,7 @@ func loadConfig(cmd *cobra.Command) (err error) {

// load target db options from connection file to viper
// conn file is only available for replication subcommand
if cmd.CalledAs() == startReplicationSubCmd || cmd.CalledAs() == replicationStatusSubCmd || cmd.CalledAs() == checkConnectionSubCmd {
if cmd.CalledAs() == startReplicationSubCmd || cmd.CalledAs() == replicationStatusSubCmd {
err := loadConnToViper()
if err != nil {
return err
Expand Down Expand Up @@ -633,7 +628,7 @@ func constructCmds() []*cobra.Command {
makeCmdManageConfig(),
makeCmdReplication(),
makeCmdGetReplicationStatus(),
makeCmdConnection(),
makeCmdCreateConnection(),
// hidden cmds (for internal testing only)
makeCmdGetDrainingStatus(),
makeCmdPromoteSandbox(),
Expand Down
158 changes: 0 additions & 158 deletions local-libs/vcluster/commands/cmd_check_connection.go

This file was deleted.

38 changes: 0 additions & 38 deletions local-libs/vcluster/commands/cmd_connection.go

This file was deleted.

Loading

0 comments on commit 5bcd870

Please sign in to comment.