Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions app/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -2023,11 +2023,8 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut,
exportS3Commands.Subcommands = append(exportS3Commands.Subcommands, exportGeneralCommands...)
exportCommand.Subcommands = append(exportCommand.Subcommands, exportS3Commands)

// TODO: remove GCP sink feature flag check when out of pre-release
if IsFeatureEnabled(GCPSinkFeatureFlag) {
exportGCSCommands.Subcommands = append(exportGCSCommands.Subcommands, exportGeneralCommands...)
exportCommand.Subcommands = append(exportCommand.Subcommands, exportGCSCommands)
}
exportGCSCommands.Subcommands = append(exportGCSCommands.Subcommands, exportGeneralCommands...)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this append the General commands twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are under different sub commands? s3 vs gcs

exportCommand.Subcommands = append(exportCommand.Subcommands, exportGCSCommands)

subCommands = append(subCommands, exportCommand)

Expand Down