From 25faf7c08d4f6e375f8a47339acd3d955a8ad20f Mon Sep 17 00:00:00 2001 From: Michal Kralik Date: Mon, 11 Sep 2023 15:43:13 +0200 Subject: [PATCH] EVEREST-386: backup name flag (#130) --- commands/install/operators.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/install/operators.go b/commands/install/operators.go index 7e99c4ba..27d3f453 100644 --- a/commands/install/operators.go +++ b/commands/install/operators.go @@ -78,6 +78,7 @@ func initOperatorsFlags(cmd *cobra.Command) { cmd.Flags().String("monitoring.pmm.password", "", "PMM password") cmd.Flags().Bool("backup.enable", false, "Enable backups") + cmd.Flags().String("backup.name", "", "Backup name in Everest") cmd.Flags().String("backup.endpoint", "", "Backup endpoint URL") cmd.Flags().String("backup.region", "", "Backup region") cmd.Flags().String("backup.bucket", "", "Backup bucket") @@ -107,6 +108,7 @@ func initOperatorsViperFlags(cmd *cobra.Command) { viper.BindPFlag("monitoring.pmm.username", cmd.Flags().Lookup("monitoring.pmm.username")) //nolint:errcheck,gosec viper.BindPFlag("monitoring.pmm.password", cmd.Flags().Lookup("monitoring.pmm.password")) //nolint:errcheck,gosec + viper.BindPFlag("backup.name", cmd.Flags().Lookup("backup.name")) //nolint:errcheck,gosec viper.BindPFlag("backup.enable", cmd.Flags().Lookup("backup.enable")) //nolint:errcheck,gosec viper.BindPFlag("backup.endpoint", cmd.Flags().Lookup("backup.endpoint")) //nolint:errcheck,gosec viper.BindPFlag("backup.region", cmd.Flags().Lookup("backup.region")) //nolint:errcheck,gosec