From d29c62f93e8bef22315b8190bfa6098e86f0af80 Mon Sep 17 00:00:00 2001 From: xeniape Date: Tue, 2 Sep 2025 08:36:46 +0200 Subject: [PATCH] chore: remove unused error variants --- rust/operator-binary/src/airflow_controller.rs | 12 ------------ rust/operator-binary/src/product_logging.rs | 2 -- 2 files changed, 14 deletions(-) diff --git a/rust/operator-binary/src/airflow_controller.rs b/rust/operator-binary/src/airflow_controller.rs index 49ede89c..60a6b9dd 100644 --- a/rust/operator-binary/src/airflow_controller.rs +++ b/rust/operator-binary/src/airflow_controller.rs @@ -34,7 +34,6 @@ use stackable_operator::{ product_image_selection::{self, ResolvedProductImage}, rbac::build_rbac_resources, }, - config::fragment::ValidationError, crd::{ authentication::{core as auth_core, ldap}, git_sync, listener, @@ -122,9 +121,6 @@ pub struct Ctx { #[derive(Snafu, Debug, EnumDiscriminants)] #[strum_discriminants(derive(IntoStaticStr))] pub enum Error { - #[snafu(display("object has no namespace"))] - ObjectHasNoNamespace, - #[snafu(display("object defines no airflow config role"))] NoAirflowRole, @@ -217,11 +213,6 @@ pub enum Error { role: String, }, - #[snafu(display("invalid executor name"))] - UnidentifiedAirflowExecutor { - source: stackable_operator::builder::meta::Error, - }, - #[snafu(display("invalid container name"))] InvalidContainerName { source: stackable_operator::builder::pod::container::Error, @@ -270,9 +261,6 @@ pub enum Error { source: stackable_operator::cluster_resources::Error, }, - #[snafu(display("fragment validation failure"))] - FragmentValidationFailure { source: ValidationError }, - #[snafu(display("failed to create PodDisruptionBudget"))] FailedToCreatePdb { source: crate::operations::pdb::Error, diff --git a/rust/operator-binary/src/product_logging.rs b/rust/operator-binary/src/product_logging.rs index 1557baf6..67a0fcad 100644 --- a/rust/operator-binary/src/product_logging.rs +++ b/rust/operator-binary/src/product_logging.rs @@ -17,8 +17,6 @@ use crate::crd::STACKABLE_LOG_DIR; #[derive(Snafu, Debug)] pub enum Error { - #[snafu(display("object has no namespace"))] - ObjectHasNoNamespace, #[snafu(display("failed to retrieve the ConfigMap [{cm_name}]"))] ConfigMapNotFound { source: stackable_operator::client::Error,