From 953b1f60dacb82ad416920b81814ac073dcdd8e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Go=CC=88kc=CC=A7e=20Go=CC=88k=20Klingel?= Date: Mon, 29 Apr 2024 14:22:30 +0200 Subject: [PATCH 1/5] change title to created at --- internal/cmd/postgresflex/backup/describe/describe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/postgresflex/backup/describe/describe.go b/internal/cmd/postgresflex/backup/describe/describe.go index e184f9dde..bf6322109 100644 --- a/internal/cmd/postgresflex/backup/describe/describe.go +++ b/internal/cmd/postgresflex/backup/describe/describe.go @@ -118,7 +118,7 @@ func outputResult(p *print.Printer, cmd *cobra.Command, outputFormat string, bac table := tables.NewTable() table.AddRow("ID", *backup.Id) table.AddSeparator() - table.AddRow("START TIME", *backup.StartTime) + table.AddRow("CREATED AT", *backup.StartTime) table.AddSeparator() table.AddRow("EXPIRES AT", backupExpireDate) table.AddSeparator() From 6f98979f8e1948a372c8d4a46b591473f0376614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Go=CC=88kc=CC=A7e=20Go=CC=88k=20Klingel?= Date: Mon, 29 Apr 2024 14:25:49 +0200 Subject: [PATCH 2/5] add note about current backup schedule in long description --- .../cmd/postgresflex/backup/update-schedule/update_schedule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/postgresflex/backup/update-schedule/update_schedule.go b/internal/cmd/postgresflex/backup/update-schedule/update_schedule.go index 94ec2c20c..0296b310f 100644 --- a/internal/cmd/postgresflex/backup/update-schedule/update_schedule.go +++ b/internal/cmd/postgresflex/backup/update-schedule/update_schedule.go @@ -32,7 +32,7 @@ func NewCmd(p *print.Printer) *cobra.Command { cmd := &cobra.Command{ Use: "update-schedule", Short: "Updates backup schedule for a PostgreSQL Flex instance", - Long: "Updates backup schedule for a PostgreSQL Flex instance.", + Long: "Updates backup schedule for a PostgreSQL Flex instance. The current backup schedule can be seen in the output of instance describe command.", Args: args.NoArgs, Example: examples.Build( examples.NewExample( From 564b9bf89d409ac65b8a9f2dfc292b11dea64edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Go=CC=88kc=CC=A7e=20Go=CC=88k=20Klingel?= Date: Mon, 29 Apr 2024 14:44:13 +0200 Subject: [PATCH 3/5] add backup schedule to the instance describe output --- internal/cmd/postgresflex/instance/describe/describe.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/cmd/postgresflex/instance/describe/describe.go b/internal/cmd/postgresflex/instance/describe/describe.go index 00be72fbe..4e69a21f3 100644 --- a/internal/cmd/postgresflex/instance/describe/describe.go +++ b/internal/cmd/postgresflex/instance/describe/describe.go @@ -124,6 +124,8 @@ func outputResult(p *print.Printer, outputFormat string, instance *postgresflex. table.AddSeparator() table.AddRow("RAM", *instance.Flavor.Memory) table.AddSeparator() + table.AddRow("BACKUP SCHEDULE (UTC)", *instance.BackupSchedule) + table.AddSeparator() err = table.Display(p) if err != nil { return fmt.Errorf("render table: %w", err) From 5a50736a14d968a918e75adf14fb7d01bd000a72 Mon Sep 17 00:00:00 2001 From: GokceGK <161626272+GokceGK@users.noreply.github.com> Date: Mon, 29 Apr 2024 15:31:48 +0200 Subject: [PATCH 4/5] Update internal/cmd/postgresflex/backup/update-schedule/update_schedule.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: João Palet --- .../cmd/postgresflex/backup/update-schedule/update_schedule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/postgresflex/backup/update-schedule/update_schedule.go b/internal/cmd/postgresflex/backup/update-schedule/update_schedule.go index 0296b310f..318425c0c 100644 --- a/internal/cmd/postgresflex/backup/update-schedule/update_schedule.go +++ b/internal/cmd/postgresflex/backup/update-schedule/update_schedule.go @@ -32,7 +32,7 @@ func NewCmd(p *print.Printer) *cobra.Command { cmd := &cobra.Command{ Use: "update-schedule", Short: "Updates backup schedule for a PostgreSQL Flex instance", - Long: "Updates backup schedule for a PostgreSQL Flex instance. The current backup schedule can be seen in the output of instance describe command.", + Long: `Updates backup schedule for a PostgreSQL Flex instance. The current backup schedule can be seen in the output of the "stackit postgresflex instance describe" command.`, Args: args.NoArgs, Example: examples.Build( examples.NewExample( From 49e50413765889cca109caf739092ced4f0ae2d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Go=CC=88kc=CC=A7e=20Go=CC=88k=20Klingel?= Date: Mon, 29 Apr 2024 15:33:06 +0200 Subject: [PATCH 5/5] update docs --- docs/stackit_postgresflex_backup_update-schedule.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/stackit_postgresflex_backup_update-schedule.md b/docs/stackit_postgresflex_backup_update-schedule.md index 331980d75..02362430c 100644 --- a/docs/stackit_postgresflex_backup_update-schedule.md +++ b/docs/stackit_postgresflex_backup_update-schedule.md @@ -4,7 +4,7 @@ Updates backup schedule for a PostgreSQL Flex instance ### Synopsis -Updates backup schedule for a PostgreSQL Flex instance. +Updates backup schedule for a PostgreSQL Flex instance. The current backup schedule can be seen in the output of the "stackit postgresflex instance describe" command. ``` stackit postgresflex backup update-schedule [flags]