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