Skip to content

Commit bb818e3

Browse files
authored
Added deprecation messages for metrics export commands (#277)
1 parent 751c5a9 commit bb818e3

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

cmd/metrics_exporter/metrics_exporter.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ var createMetricsExporterCmd = &cobra.Command{
4242
Use: "create",
4343
Short: "Create Metrics Exporter Config",
4444
Long: "Create Metrics Exporter Config",
45+
Deprecated: "use \"integration create\" instead." +
46+
"\nThis command was deprecated 2024-11-30 and will be supported until 2025-2-28.\n",
4547
Run: func(cmd *cobra.Command, args []string) {
4648

4749
metricsExporterName, _ := cmd.Flags().GetString("config-name")
@@ -90,6 +92,8 @@ var listMetricsExporterCmd = &cobra.Command{
9092
Use: "list",
9193
Short: "List Metrics Exporter Config",
9294
Long: "List Metrics Exporter Config",
95+
Deprecated: "use \"integration list\" instead." +
96+
"\nThis command was deprecated 2024-11-30 and will be supported until 2025-2-28.\n",
9397
Run: func(cmd *cobra.Command, args []string) {
9498
authApi, err := ybmAuthClient.NewAuthApiClient()
9599
if err != nil {
@@ -122,6 +126,8 @@ var describeMetricsExporterCmd = &cobra.Command{
122126
Use: "describe",
123127
Short: "Describe Metrics Exporter Config",
124128
Long: "Describe Metrics Exporter Config",
129+
Deprecated: "refer to \"integration\"." +
130+
"\nThis command was deprecated 2024-11-30 and will be supported until 2025-2-28.\n",
125131
Run: func(cmd *cobra.Command, args []string) {
126132
authApi, err := ybmAuthClient.NewAuthApiClient()
127133
if err != nil {
@@ -146,6 +152,8 @@ var deleteMetricsExporterCmd = &cobra.Command{
146152
Use: "delete",
147153
Short: "Delete Metrics Exporter Config",
148154
Long: "Delete Metrics Exporter Config",
155+
Deprecated: "use \"integration delete\" instead." +
156+
"\nThis command was deprecated 2024-11-30 and will be supported until 2025-2-28.\n",
149157
PreRun: func(cmd *cobra.Command, args []string) {
150158
viper.BindPFlag("force", cmd.Flags().Lookup("force"))
151159
configName, _ := cmd.Flags().GetString("config-name")
@@ -277,6 +285,8 @@ var updateMetricsExporterCmd = &cobra.Command{
277285
Use: "update",
278286
Short: "Update Metrics Exporter Config",
279287
Long: "Update Metrics Exporter Config",
288+
Deprecated: "refer to \"integration\"." +
289+
"\nThis command was deprecated 2024-11-30 and will be supported until 2025-2-28.\n",
280290
Run: func(cmd *cobra.Command, args []string) {
281291
authApi, err := ybmAuthClient.NewAuthApiClient()
282292
if err != nil {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/spf13/cobra v1.8.0
2424
github.com/spf13/viper v1.17.0
2525
github.com/t-tomalak/logrus-easy-formatter v0.0.0-20190827215021-c074f06c5816
26-
github.com/yugabyte/yugabytedb-managed-go-client-internal v0.0.0-20241116155807-eab59d10ab1c
26+
github.com/yugabyte/yugabytedb-managed-go-client-internal v0.0.0-20241129094603-513ccfc1e5ae
2727
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
2828
golang.org/x/mod v0.20.0
2929
golang.org/x/term v0.25.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8
282282
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
283283
github.com/t-tomalak/logrus-easy-formatter v0.0.0-20190827215021-c074f06c5816 h1:J6v8awz+me+xeb/cUTotKgceAYouhIB3pjzgRd6IlGk=
284284
github.com/t-tomalak/logrus-easy-formatter v0.0.0-20190827215021-c074f06c5816/go.mod h1:tzym/CEb5jnFI+Q0k4Qq3+LvRF4gO3E2pxS8fHP8jcA=
285-
github.com/yugabyte/yugabytedb-managed-go-client-internal v0.0.0-20241116155807-eab59d10ab1c h1:NhSquu8YYg8yQrceEmVkxYg/kwpvqXodSa2qw0/AlGk=
286-
github.com/yugabyte/yugabytedb-managed-go-client-internal v0.0.0-20241116155807-eab59d10ab1c/go.mod h1:5vW0xIzIZw+1djkiWKx0qqNmqbRBSf4mjc4qw8lIMik=
285+
github.com/yugabyte/yugabytedb-managed-go-client-internal v0.0.0-20241129094603-513ccfc1e5ae h1:DPZFx2PSJhrCfoZ5vjre2rwvoltlBB75chAlL0Zdapc=
286+
github.com/yugabyte/yugabytedb-managed-go-client-internal v0.0.0-20241129094603-513ccfc1e5ae/go.mod h1:5vW0xIzIZw+1djkiWKx0qqNmqbRBSf4mjc4qw8lIMik=
287287
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
288288
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
289289
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=

0 commit comments

Comments
 (0)