Skip to content

Commit

Permalink
log node spec on modified events
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-goldenring committed Apr 9, 2021
1 parent cde68cb commit 670db01
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controller/src/util/node_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ impl NodeWatcher {
}
WatchEvent::Modified(node) => {
trace!("handle_node - Modified: {:?}", &node.metadata.name);
trace!(
"handle_node - Modified with Node Status {:?} and NodeSpec: {:?}",
&node.status,
&node.spec
);
if self.is_node_ready(&node) {
self.known_nodes
.insert(node.metadata.name.clone(), NodeState::Running);
Expand Down Expand Up @@ -166,6 +171,7 @@ impl NodeWatcher {

/// This determines if a node is in the Ready state.
fn is_node_ready(&self, k8s_node: &NodeObject) -> bool {
trace!("is_node_ready - for node {:?}", k8s_node.metadata.name);
k8s_node
.status
.as_ref()
Expand Down

0 comments on commit 670db01

Please sign in to comment.