Skip to content

Commit

Permalink
fix: count determined-system pods as det pods [RM-148] (#9148)
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinaecalderon authored Apr 17, 2024
1 parent 0fc247c commit 1cc9cd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion master/internal/rm/kubernetesrm/pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,10 @@ func (p *pods) getNonDetPods() []k8sV1.Pod {
return nonDetPods
}
for _, p := range pList.Items {
if _, ok := p.Labels["determined"]; !ok {
_, isDet := p.Labels[determinedLabel]
_, isDetSystem := p.Labels[determinedSystemLabel]

if !(isDet || isDetSystem) {
if p.Spec.NodeName != "" {
nonDetPods = append(nonDetPods, p)
}
Expand Down

0 comments on commit 1cc9cd7

Please sign in to comment.