diff --git a/cmd/admin_deploy.go b/cmd/admin_deploy.go deleted file mode 100644 index 6f8c966b..00000000 --- a/cmd/admin_deploy.go +++ /dev/null @@ -1,32 +0,0 @@ -package cmd - -import ( - "github.com/qovery/qovery-cli/pkg" - log "github.com/sirupsen/logrus" - "github.com/spf13/cobra" -) - -var ( - adminDeployByIdCmd = &cobra.Command{ - Use: "deploy", - Short: "Deploy cluster with its Id", - Run: func(cmd *cobra.Command, args []string) { - deployClusterById() - }, - } -) - -func init() { - adminDeployByIdCmd.Flags().StringVarP(&clusterId, "cluster", "c", "", "Cluster's id") - adminDeployByIdCmd.Flags().BoolVarP(&dryRun, "disable-dry-run", "y", false, "Disable dry run mode") - orgaErr = adminDeployByIdCmd.MarkFlagRequired("cluster") - adminCmd.AddCommand(adminDeployByIdCmd) -} - -func deployClusterById() { - if orgaErr != nil { - log.Error("Invalid cluster Id") - } else { - pkg.DeployById(clusterId, dryRun) - } -} diff --git a/cmd/admin_deploy_all.go b/cmd/admin_deploy_all.go deleted file mode 100644 index 17b55ba9..00000000 --- a/cmd/admin_deploy_all.go +++ /dev/null @@ -1,25 +0,0 @@ -package cmd - -import ( - "github.com/qovery/qovery-cli/pkg" - "github.com/spf13/cobra" -) - -var ( - adminDeployAllCmd = &cobra.Command{ - Use: "deploy-all", - Short: "Deploy all customers clusters", - Run: func(cmd *cobra.Command, args []string) { - deployAllClusters() - }, - } -) - -func init() { - adminDeployAllCmd.Flags().BoolVarP(&dryRun, "disable-dry-run", "y", false, "Disable dry run mode") - adminCmd.AddCommand(adminDeployAllCmd) -} - -func deployAllClusters() { - pkg.DeployAll(dryRun) -} diff --git a/cmd/admin_deploy_failed_clusters.go b/cmd/admin_deploy_failed_clusters.go deleted file mode 100644 index 2d605ce9..00000000 --- a/cmd/admin_deploy_failed_clusters.go +++ /dev/null @@ -1,24 +0,0 @@ -package cmd - -import ( - "github.com/qovery/qovery-cli/pkg" - "github.com/spf13/cobra" -) - -var ( - adminDeployFailedClustersCmd = &cobra.Command{ - Use: "deploy-failed-clusters", - Short: "Deploy all clusters that are in failed state", - Run: func(cmd *cobra.Command, args []string) { - deployFailedClusters() - }, - } -) - -func init() { - adminCmd.AddCommand(adminDeployFailedClustersCmd) -} - -func deployFailedClusters() { - pkg.DeployFailedClusters() -}