Skip to content

Commit

Permalink
skip infra and workload nodes from worker count
Browse files Browse the repository at this point in the history
  • Loading branch information
morenod authored and rsevilla87 committed Sep 13, 2021
1 parent 8b69368 commit f599d52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snafu/scale_openshift_wrapper/trigger_scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ def _run_scale(self):
worker_count = (
len(
nodes.get(
label_selector="node-role.kubernetes.io/worker,!node-role.kubernetes.io/master"
label_selector="node-role.kubernetes.io/worker,"
"!node-role.kubernetes.io/master,"
"!node-role.kubernetes.io/infra,"
"!node-role.kubernetes.io/workload"
).attributes.items
)
or 0
Expand Down

0 comments on commit f599d52

Please sign in to comment.