diff --git a/tembo-operator/src/extensions/database_queries.rs b/tembo-operator/src/extensions/database_queries.rs index 15a2128e1..d395f765f 100644 --- a/tembo-operator/src/extensions/database_queries.rs +++ b/tembo-operator/src/extensions/database_queries.rs @@ -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"); diff --git a/tembo-operator/src/stacks/config_engines.rs b/tembo-operator/src/stacks/config_engines.rs index 9e5325702..b295e2e35 100644 --- a/tembo-operator/src/stacks/config_engines.rs +++ b/tembo-operator/src/stacks/config_engines.rs @@ -136,7 +136,6 @@ pub fn mq_config_engine(stack: &Stack) -> Vec { 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 diff --git a/tembo-operator/src/stacks/types.rs b/tembo-operator/src/stacks/types.rs index 2f1fc26a0..b034b076b 100644 --- a/tembo-operator/src/stacks/types.rs +++ b/tembo-operator/src/stacks/types.rs @@ -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, @@ -21,6 +20,7 @@ pub enum StackType { #[default] OLTP, VectorDB, + Geospatial, } impl std::str::FromStr for StackType { @@ -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"), } } @@ -50,6 +51,7 @@ impl StackType { StackType::OLAP => "OLAP", StackType::OLTP => "OLTP", StackType::VectorDB => "VectorDB", + StackType::Geospatial => "Geospatial", } } } diff --git a/tembo-operator/tests/integration_tests.rs b/tembo-operator/tests/integration_tests.rs index ac01198d4..7fcb63671 100644 --- a/tembo-operator/tests/integration_tests.rs +++ b/tembo-operator/tests/integration_tests.rs @@ -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);