-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: invalid objects don't stop the reconciliation #551
Conversation
Co-authored-by: Natalie Klestrup Röijezon <teo@nullable.se>
Co-authored-by: Natalie Klestrup Röijezon <teo@nullable.se>
Co-authored-by: Natalie Klestrup Röijezon <teo@nullable.se>
Co-authored-by: Natalie Klestrup Röijezon <teo@nullable.se>
let Ok(druid_connection) = &druid_connection.0 else { | ||
return false; | ||
}; | ||
druid_connection.druid_namespace().ok() == config_map.meta().namespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [clippy] reported by reviewdog 🐶
error[E0599]: no method named `meta` found for reference `&stackable_operator::kube::kube_core::DeserializeGuard` in the current scope
--> rust/operator-binary/src/main.rs:238:59
|
238 | druid_connection.druid_namespace().ok() == config_map.meta().namespace
| ^^^^
|
= help: items from traits can only be used if the trait is in scope
help: trait `Resource` which provides `meta` is implemented but not in scope; perhaps you want to import it
|
1 + use stackable_operator::kube::Resource;
|
help: there is a method `meta_mut` with a similar name
|
238 | druid_connection.druid_namespace().ok() == config_map.meta_mut().namespace
| ~~~~~~~~
let Ok(druid_connection) = &druid_connection.0 else { | ||
return false; | ||
}; | ||
druid_connection.druid_namespace().ok() == config_map.meta().namespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [clippy] reported by reviewdog 🐶
error[E0599]: no method named `meta` found for reference `&stackable_operator::kube::kube_core::DeserializeGuard` in the current scope
--> rust/operator-binary/src/main.rs:238:59
|
238 | druid_connection.druid_namespace().ok() == config_map.meta().namespace
| ^^^^
|
= help: items from traits can only be used if the trait is in scope
help: trait `Resource` which provides `meta` is implemented but not in scope; perhaps you want to import it
|
1 + use stackable_operator::kube::Resource;
|
help: there is a method `meta_mut` with a similar name
|
238 | druid_connection.druid_namespace().ok() == config_map.meta_mut().namespace
| ~~~~~~~~
return false; | ||
}; | ||
druid_connection.druid_namespace().ok() == config_map.meta().namespace | ||
&& Some(druid_connection.druid_name()) == config_map.meta().name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [clippy] reported by reviewdog 🐶
error[E0599]: no method named `meta` found for reference `&stackable_operator::kube::kube_core::DeserializeGuard` in the current scope
--> rust/operator-binary/src/main.rs:239:62
|
239 | && Some(druid_connection.druid_name()) == config_map.meta().name
| ^^^^
|
= help: items from traits can only be used if the trait is in scope
help: trait `Resource` which provides `meta` is implemented but not in scope; perhaps you want to import it
|
1 + use stackable_operator::kube::Resource;
|
help: there is a method `meta_mut` with a similar name
|
239 | && Some(druid_connection.druid_name()) == config_map.meta_mut().name
| ~~~~~~~~
return false; | ||
}; | ||
druid_connection.druid_namespace().ok() == config_map.meta().namespace | ||
&& Some(druid_connection.druid_name()) == config_map.meta().name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [clippy] reported by reviewdog 🐶
error[E0599]: no method named `meta` found for reference `&stackable_operator::kube::kube_core::DeserializeGuard` in the current scope
--> rust/operator-binary/src/main.rs:239:62
|
239 | && Some(druid_connection.druid_name()) == config_map.meta().name
| ^^^^
|
= help: items from traits can only be used if the trait is in scope
help: trait `Resource` which provides `meta` is implemented but not in scope; perhaps you want to import it
|
1 + use stackable_operator::kube::Resource;
|
help: there is a method `meta_mut` with a similar name
|
239 | && Some(druid_connection.druid_name()) == config_map.meta_mut().name
| ~~~~~~~~
let Ok(druid_connection) = &druid_connection.0 else { | ||
return false; | ||
}; | ||
druid_connection.metadata.namespace == job.meta().namespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [clippy] reported by reviewdog 🐶
error[E0599]: no method named `meta` found for reference `&stackable_operator::kube::kube_core::DeserializeGuard` in the current scope
--> rust/operator-binary/src/main.rs:249:48
|
249 | druid_connection.metadata.namespace == job.meta().namespace
| ^^^^
|
= help: items from traits can only be used if the trait is in scope
help: trait `Resource` which provides `meta` is implemented but not in scope; perhaps you want to import it
|
1 + use stackable_operator::kube::Resource;
|
help: there is a method `meta_mut` with a similar name
|
249 | druid_connection.metadata.namespace == job.meta_mut().namespace
| ~~~~~~~~
let Ok(druid_connection) = &druid_connection.0 else { | ||
return false; | ||
}; | ||
druid_connection.metadata.namespace == job.meta().namespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [clippy] reported by reviewdog 🐶
error[E0599]: no method named `meta` found for reference `&stackable_operator::kube::kube_core::DeserializeGuard` in the current scope
--> rust/operator-binary/src/main.rs:249:48
|
249 | druid_connection.metadata.namespace == job.meta().namespace
| ^^^^
|
= help: items from traits can only be used if the trait is in scope
help: trait `Resource` which provides `meta` is implemented but not in scope; perhaps you want to import it
|
1 + use stackable_operator::kube::Resource;
|
help: there is a method `meta_mut` with a similar name
|
249 | druid_connection.metadata.namespace == job.meta_mut().namespace
| ~~~~~~~~
return false; | ||
}; | ||
druid_connection.metadata.namespace == job.meta().namespace | ||
&& Some(druid_connection.job_name()) == job.meta().name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [clippy] reported by reviewdog 🐶
error[E0599]: no method named `meta` found for reference `&stackable_operator::kube::kube_core::DeserializeGuard` in the current scope
--> rust/operator-binary/src/main.rs:250:53
|
250 | && Some(druid_connection.job_name()) == job.meta().name
| ^^^^
|
= help: items from traits can only be used if the trait is in scope
help: trait `Resource` which provides `meta` is implemented but not in scope; perhaps you want to import it
|
1 + use stackable_operator::kube::Resource;
|
help: there is a method `meta_mut` with a similar name
|
250 | && Some(druid_connection.job_name()) == job.meta_mut().name
| ~~~~~~~~
return false; | ||
}; | ||
druid_connection.metadata.namespace == job.meta().namespace | ||
&& Some(druid_connection.job_name()) == job.meta().name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [clippy] reported by reviewdog 🐶
error[E0599]: no method named `meta` found for reference `&stackable_operator::kube::kube_core::DeserializeGuard` in the current scope
--> rust/operator-binary/src/main.rs:250:53
|
250 | && Some(druid_connection.job_name()) == job.meta().name
| ^^^^
|
= help: items from traits can only be used if the trait is in scope
help: trait `Resource` which provides `meta` is implemented but not in scope; perhaps you want to import it
|
1 + use stackable_operator::kube::Resource;
|
help: there is a method `meta_mut` with a similar name
|
250 | && Some(druid_connection.job_name()) == job.meta_mut().name
| ~~~~~~~~
Description
Part of: stackabletech/issues#211
Definition of Done Checklist
Author
Reviewer
Acceptance