Skip to content

Commit

Permalink
Merge branch 'main' into tls-client-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryDodzin authored Jul 10, 2024
2 parents ad579da + b0f04a1 commit d0276d3
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 d0276d3

Please sign in to comment.