Skip to content

Commit

Permalink
fix Capabilities in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bjw-s committed Dec 22, 2024
1 parent 154b970 commit 695f41f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions charts/library/common-test/tests/pod/field_hostUsers_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,23 @@ templates:
- common.yaml
values:
- ../_values/controllers_main_default_container.yaml
capabilities:
majorVersion: 1
minorVersion: 29
tests:
# This feature requires k8s 1.29 or newer
- it: default should pass
- it: default should pass for kubernetes < 1.28
capabilities:
majorVersion: 1
minorVersion: 28
asserts:
- documentIndex: 0
isKind:
of: Deployment
- documentIndex: 0
notExists:
path: spec.template.spec.hostUsers

- it: default should pass for kubernetes >= 1.29
asserts:
- documentIndex: 0
isKind:
Expand Down

0 comments on commit 695f41f

Please sign in to comment.