Dong Ma | 1da7eca | 2025-02-10 06:32:12 +0000 | [diff] [blame] | 1 | suite: runtimeclass |
| 2 | tests: |
| 3 | - it: should support not having a runtime class |
| 4 | templates: |
| 5 | - templates/deployment-api.yaml |
| 6 | - templates/pod-test.yaml |
| 7 | - templates/job-db-sync.yaml |
Dong Ma | 36b8922 | 2025-02-13 16:15:52 +0000 | [diff] [blame] | 8 | - templates/job-bootstrap.yaml |
| 9 | set: |
| 10 | bootstrap: |
| 11 | enabled: true |
Dong Ma | 1da7eca | 2025-02-10 06:32:12 +0000 | [diff] [blame] | 12 | asserts: |
| 13 | - template: templates/deployment-api.yaml |
| 14 | documentIndex: 3 |
| 15 | notExists: |
| 16 | path: spec.template.spec.runtimeClassName |
| 17 | - template: templates/pod-test.yaml |
| 18 | documentIndex: 1 |
| 19 | notExists: |
| 20 | path: spec.runtimeClassName |
| 21 | - template: templates/job-db-sync.yaml |
| 22 | documentIndex: 3 |
| 23 | notExists: |
| 24 | path: spec.template.spec.runtimeClassName |
Dong Ma | 36b8922 | 2025-02-13 16:15:52 +0000 | [diff] [blame] | 25 | - template: templates/job-bootstrap.yaml |
| 26 | documentIndex: 1 |
| 27 | notExists: |
| 28 | path: spec.template.spec.runtimeClassName |
Dong Ma | 1da7eca | 2025-02-10 06:32:12 +0000 | [diff] [blame] | 29 | |
| 30 | - it: should support setting a runtime class |
| 31 | templates: |
| 32 | - templates/deployment-api.yaml |
| 33 | - templates/pod-rally-test.yaml |
| 34 | - templates/job-db-sync.yaml |
Dong Ma | 36b8922 | 2025-02-13 16:15:52 +0000 | [diff] [blame] | 35 | - templates/job-bootstrap.yaml |
Dong Ma | 1da7eca | 2025-02-10 06:32:12 +0000 | [diff] [blame] | 36 | set: |
| 37 | pod: |
| 38 | runtimeClassName: |
| 39 | barbican_api: kata-clh |
| 40 | barbican_tests: kata-clh |
| 41 | db_sync: kata-clh |
Dong Ma | 36b8922 | 2025-02-13 16:15:52 +0000 | [diff] [blame] | 42 | bootstrap: kata-clh |
| 43 | bootstrap: |
| 44 | enabled: true |
Dong Ma | 1da7eca | 2025-02-10 06:32:12 +0000 | [diff] [blame] | 45 | asserts: |
| 46 | - template: templates/deployment-api.yaml |
| 47 | documentIndex: 3 |
| 48 | equal: |
| 49 | path: spec.template.spec.runtimeClassName |
| 50 | value: kata-clh |
| 51 | - template: templates/pod-test.yaml |
| 52 | documentIndex: 1 |
| 53 | equal: |
| 54 | path: spec.runtimeClassName |
| 55 | value: kata-clh |
| 56 | - template: templates/job-db-sync.yaml |
| 57 | documentIndex: 3 |
| 58 | equal: |
| 59 | path: spec.template.spec.runtimeClassName |
| 60 | value: kata-clh |
Dong Ma | 36b8922 | 2025-02-13 16:15:52 +0000 | [diff] [blame] | 61 | - template: templates/job-bootstrap.yaml |
| 62 | documentIndex: 1 |
| 63 | equal: |
| 64 | path: spec.template.spec.runtimeClassName |
| 65 | value: kata-clh |