diff --git a/dozer-cli/src/cli/cloud.rs b/dozer-cli/src/cli/cloud.rs index 83a7e0c2ea..8d0e020cec 100644 --- a/dozer-cli/src/cli/cloud.rs +++ b/dozer-cli/src/cli/cloud.rs @@ -136,11 +136,6 @@ pub enum VersionCommand { /// The version to inspect version: u32, }, - /// Creates a new version of the application with the given deployment - Create { - /// The deployment of the application to create a new version from - deployment: u32, - }, /// Sets a version as the "current" version of the application /// /// Current version of an application can be visited without the "/v" prefix. diff --git a/dozer-cli/src/simple/cloud_orchestrator.rs b/dozer-cli/src/simple/cloud_orchestrator.rs index 008be7d408..e2ad82c797 100644 --- a/dozer-cli/src/simple/cloud_orchestrator.rs +++ b/dozer-cli/src/simple/cloud_orchestrator.rs @@ -25,7 +25,7 @@ use dozer_types::grpc_types::cloud::{ }; use dozer_types::grpc_types::cloud::{ CreateAppRequest, DeploymentInfo, DeploymentStatusWithHealth, File, ListDeploymentRequest, - SetCurrentVersionRequest, UpsertVersionRequest, + SetCurrentVersionRequest, }; use dozer_types::log::info; use dozer_types::prettytable::{row, table}; @@ -524,25 +524,6 @@ impl SimpleOrchestrator { let mut client = get_cloud_client(&cloud, cloud_config).await?; match version { - VersionCommand::Create { deployment } => { - let status = client - .get_status(GetStatusRequest { - app_id: app_id.clone(), - }) - .await - .map_err(map_tonic_error)? - .into_inner(); - let latest_version = status.versions.into_values().max().unwrap_or(0); - - client - .upsert_version(UpsertVersionRequest { - app_id, - version: latest_version + 1, - deployment, - }) - .await - .map_err(map_tonic_error)?; - } VersionCommand::SetCurrent { version } => { client .set_current_version(SetCurrentVersionRequest { app_id, version }) diff --git a/dozer-types/protos/cloud.proto b/dozer-types/protos/cloud.proto index 46107ed1a8..f329adcb56 100644 --- a/dozer-types/protos/cloud.proto +++ b/dozer-types/protos/cloud.proto @@ -28,7 +28,6 @@ service DozerCloud { rpc get_status(GetStatusRequest) returns (GetStatusResponse); rpc list_deployments(ListDeploymentRequest) returns (ListDeploymentResponse); rpc list_versions(ListVersionsRequest) returns (ListVersionsResponse); - rpc upsert_version(UpsertVersionRequest) returns (UpsertVersionResponse); rpc set_current_version(SetCurrentVersionRequest) returns (SetCurrentVersionResponse); rpc list_files(ListFilesRequest) returns (ListFilesResponse); rpc get_configuration(GetConfigurationRequest) returns (GetConfigurationResponse); @@ -218,14 +217,6 @@ message ListDeploymentResponse { repeated DeploymentInfo deployments = 2; } -message UpsertVersionRequest { - string app_id = 1; - uint32 version = 2; - uint32 deployment = 3; -} - -message UpsertVersionResponse {} - message SetCurrentVersionRequest { string app_id = 1; uint32 version = 2;