Skip to content

Commit

Permalink
Don't include non-running pods in node capacity check (#2583)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha authored Jul 10, 2024
1 parent d2d4281 commit b0f04a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/2582.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don't include non-running pods in node capacity check
5 changes: 4 additions & 1 deletion mirrord/kube/src/api/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ impl RuntimeData {

let mut pod_count = 0;
let mut list_params = ListParams {
field_selector: Some(format!("spec.nodeName={}", self.node_name)),
field_selector: Some(format!(
"status.phase=Running,spec.nodeName={}",
self.node_name
)),
..Default::default()
};

Expand Down

0 comments on commit b0f04a1

Please sign in to comment.