Skip to content

Commit

Permalink
e2e: add test for ignoring a container in the balloons policy
Browse files Browse the repository at this point in the history
Signed-off-by: Antti Kervinen <[email protected]>
  • Loading branch information
askervin committed Sep 30, 2024
1 parent 1be5ad3 commit c8054b8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/e2e/policies.test-suite/balloons/match-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ config:
pinMemory: true
idleCPUClass: normal
allocatorTopologyBalancing: true
ignore:
matchExpressions:
- key: name
operator: In
values:
- pod1cX
- pod2c1
- pod2c2
- pod3cX
balloonTypes:
- name: special
matchExpressions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@ CONTCOUNT=1 create balloons-busybox
report allowed
verify 'len(cpus["pod1c0"]) == 1'

# pod2: run ordinary workload where pod2c1 and pod2c2 match ignore expression
CONTCOUNT=4 create balloons-busybox
report allowed
verify 'len(cpus["pod2c0"]) == 1' \
'len(cpus["pod2c1"]) == 16' \
'len(cpus["pod2c2"]) == 16' \
'len(cpus["pod2c3"]) == 1'

cleanup

0 comments on commit c8054b8

Please sign in to comment.