Skip to content

Commit f852069

Browse files
authored
CLOUDP-272726: Deprecate datalakes pipeline commands (#3254)
1 parent ed72504 commit f852069

File tree

7 files changed

+12
-5
lines changed

7 files changed

+12
-5
lines changed

internal/cli/datalakepipelines/delete.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ func DeleteBuilder() *cobra.Command {
5353
DeleteOpts: cli.NewDeleteOpts("'%s' deleted\n", "Not deleted"),
5454
}
5555
cmd := &cobra.Command{
56-
Use: "delete <pipelineName>",
57-
Aliases: []string{"rm"},
58-
Short: "Remove the specified data lake pipeline from your project.",
59-
Long: fmt.Sprintf(usage.RequiredRole, "Project Owner"),
60-
Args: require.ExactArgs(1),
56+
Use: "delete <pipelineName>",
57+
Aliases: []string{"rm"},
58+
Short: "Remove the specified data lake pipeline from your project.",
59+
Long: fmt.Sprintf(usage.RequiredRole, "Project Owner"),
60+
Args: require.ExactArgs(1),
61+
Deprecated: "Data Lake Pipelines is deprecated. Please see: https://dochub.mongodb.org/core/data-lake-deprecation.",
6162
Annotations: map[string]string{
6263
"pipelineNameDesc": "Label that identifies the pipeline",
6364
"output": opts.SuccessMessage(),

internal/cli/datalakepipelines/list.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func ListBuilder() *cobra.Command {
6868
Args: require.NoArgs,
6969
Example: `# list all pipelines:
7070
atlas dataLakePipelines list`,
71+
Deprecated: "Data Lake Pipelines is deprecated. Please see: https://dochub.mongodb.org/core/data-lake-deprecation.",
7172
PreRunE: func(cmd *cobra.Command, _ []string) error {
7273
return opts.PreRunE(
7374
opts.ValidateProjectID,

internal/cli/datalakepipelines/pause.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func PauseBuilder() *cobra.Command {
6666
Annotations: map[string]string{
6767
"pipelineNameDesc": "Label that identifies the pipeline",
6868
},
69+
Deprecated: "Data Lake Pipelines is deprecated. Please see: https://dochub.mongodb.org/core/data-lake-deprecation.",
6970
Example: `# pause pipeline 'Pipeline1':
7071
atlas dataLakePipelines pause Pipeline1
7172
`,

internal/cli/datalakepipelines/start.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func StartBuilder() *cobra.Command {
6666
Annotations: map[string]string{
6767
"pipelineNameDesc": "Label that identifies the pipeline",
6868
},
69+
Deprecated: "Data Lake Pipelines is deprecated. Please see: https://dochub.mongodb.org/core/data-lake-deprecation.",
6970
Example: `# start pipeline 'Pipeline1':
7071
atlas dataLakePipelines start Pipeline1
7172
`,

internal/cli/datalakepipelines/trigger.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ func TriggerBuilder() *cobra.Command {
6767
Annotations: map[string]string{
6868
"pipelineNameDesc": "Label that identifies the pipeline",
6969
},
70+
Deprecated: "Data Lake Pipelines is deprecated. Please see: https://dochub.mongodb.org/core/data-lake-deprecation.",
7071
Example: `# trigger pipeline 'Pipeline1':
7172
atlas dataLakePipelines trigger Pipeline1
7273
`,

internal/cli/datalakepipelines/update.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ func UpdateBuilder() *cobra.Command {
155155
Annotations: map[string]string{
156156
"pipelineNameDesc": "Label that identifies the pipeline",
157157
},
158+
Deprecated: "Data Lake Pipelines is deprecated. Please see: https://dochub.mongodb.org/core/data-lake-deprecation.",
158159
Example: `# update data lake pipeline:
159160
atlas dataLakePipelines update Pipeline1 --sinkType CPS --sinkMetadataProvider AWS --sinkMetadataRegion us-east-1 --sinkPartitionField name:0,summary:1 --sourceType PERIODIC_CPS --sourceClusterName Cluster1 --sourceDatabaseName sample_airbnb --sourceCollectionName listingsAndReviews --sourcePolicyItemId 507f1f77bcf86cd799439011 --transform EXCLUDE:space,EXCLUDE:notes`,
160161
PreRunE: func(cmd *cobra.Command, args []string) error {

internal/cli/datalakepipelines/watch.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func WatchBuilder() *cobra.Command {
7676
"pipelineNameDesc": "Label that identifies the pipeline",
7777
"output": watchTemplate,
7878
},
79+
Deprecated: "Data Lake Pipelines is deprecated. Please see: https://dochub.mongodb.org/core/data-lake-deprecation.",
7980
Example: `# watches the pipeline 'Pipeline1':
8081
atlas dataLakePipelines watch Pipeline1
8182
`,

0 commit comments

Comments
 (0)