Skip to content

Commit

Permalink
Update types.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHStanton committed Dec 5, 2023
1 parent fd65e18 commit f1c2db8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion tembo-operator/src/extensions/database_queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ pub async fn is_not_restarting(
})?
.into();


let pg_postmaster = match pg_postmaster_result {
Ok(result) => result.stdout.ok_or_else(|| {
error!("{cdb_name}: select pg_postmaster_start_time() had no stdout");
Expand Down
1 change: 0 additions & 1 deletion tembo-operator/src/stacks/config_engines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ pub fn mq_config_engine(stack: &Stack) -> Vec<PgConfig> {
configs
}


// olap formula for max_parallel_workers_per_gather
fn olap_max_parallel_workers_per_gather(cpu: i32) -> i32 {
// higher of default (2) or 0.5 * cpu
Expand Down
4 changes: 3 additions & 1 deletion tembo-operator/src/stacks/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;


#[derive(Clone, Debug, Default, Serialize, Deserialize, JsonSchema, PartialEq, ToSchema)]
pub enum StackType {
DataWarehouse,
Expand All @@ -21,6 +20,7 @@ pub enum StackType {
#[default]
OLTP,
VectorDB,
Geospatial,
}

impl std::str::FromStr for StackType {
Expand All @@ -35,6 +35,7 @@ impl std::str::FromStr for StackType {
"OLAP" => Ok(StackType::OLAP),
"OLTP" => Ok(StackType::OLTP),
"VectorDB" => Ok(StackType::VectorDB),
"Geospatial" => Ok(StackType::Geospatial),
_ => Err("invalid value"),
}
}
Expand All @@ -50,6 +51,7 @@ impl StackType {
StackType::OLAP => "OLAP",
StackType::OLTP => "OLTP",
StackType::VectorDB => "VectorDB",
StackType::Geospatial => "Geospatial",
}
}
}
Expand Down
1 change: 0 additions & 1 deletion tembo-operator/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,6 @@ mod test {
}
});


// Use the patch method to update the Cluster resource
let params = PatchParams::default();
let patch = Patch::Merge(patch_json);
Expand Down

0 comments on commit f1c2db8

Please sign in to comment.