Skip to content

Commit b72f2b1

Browse files
authored
chore: remove unused error variants (#681)
1 parent 2362669 commit b72f2b1

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

rust/operator-binary/src/airflow_controller.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ use stackable_operator::{
3434
product_image_selection::{self, ResolvedProductImage},
3535
rbac::build_rbac_resources,
3636
},
37-
config::fragment::ValidationError,
3837
crd::{
3938
authentication::{core as auth_core, ldap},
4039
git_sync, listener,
@@ -122,9 +121,6 @@ pub struct Ctx {
122121
#[derive(Snafu, Debug, EnumDiscriminants)]
123122
#[strum_discriminants(derive(IntoStaticStr))]
124123
pub enum Error {
125-
#[snafu(display("object has no namespace"))]
126-
ObjectHasNoNamespace,
127-
128124
#[snafu(display("object defines no airflow config role"))]
129125
NoAirflowRole,
130126

@@ -217,11 +213,6 @@ pub enum Error {
217213
role: String,
218214
},
219215

220-
#[snafu(display("invalid executor name"))]
221-
UnidentifiedAirflowExecutor {
222-
source: stackable_operator::builder::meta::Error,
223-
},
224-
225216
#[snafu(display("invalid container name"))]
226217
InvalidContainerName {
227218
source: stackable_operator::builder::pod::container::Error,
@@ -270,9 +261,6 @@ pub enum Error {
270261
source: stackable_operator::cluster_resources::Error,
271262
},
272263

273-
#[snafu(display("fragment validation failure"))]
274-
FragmentValidationFailure { source: ValidationError },
275-
276264
#[snafu(display("failed to create PodDisruptionBudget"))]
277265
FailedToCreatePdb {
278266
source: crate::operations::pdb::Error,

rust/operator-binary/src/product_logging.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ use crate::crd::STACKABLE_LOG_DIR;
1717

1818
#[derive(Snafu, Debug)]
1919
pub enum Error {
20-
#[snafu(display("object has no namespace"))]
21-
ObjectHasNoNamespace,
2220
#[snafu(display("failed to retrieve the ConfigMap [{cm_name}]"))]
2321
ConfigMapNotFound {
2422
source: stackable_operator::client::Error,

0 commit comments

Comments
 (0)