Dong Ma | e11498d | 2025-02-12 03:36:18 +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/job-db-sync.yaml |
| 7 | asserts: |
| 8 | - template: templates/deployment.yaml |
| 9 | documentIndex: 3 |
| 10 | notExists: |
| 11 | path: spec.template.spec.runtimeClassName |
| 12 | - template: templates/job-db-sync.yaml |
| 13 | documentIndex: 3 |
| 14 | notExists: |
| 15 | path: spec.template.spec.runtimeClassName |
| 16 | |
| 17 | - it: should support setting a runtime class |
| 18 | templates: |
| 19 | - templates/deployment.yaml |
| 20 | - templates/job-db-sync.yaml |
| 21 | set: |
| 22 | pod: |
| 23 | runtimeClassName: |
| 24 | placement: kata-clh |
| 25 | db_sync: kata-clh |
| 26 | asserts: |
| 27 | - template: templates/deployment.yaml |
| 28 | documentIndex: 3 |
| 29 | equal: |
| 30 | path: spec.template.spec.runtimeClassName |
| 31 | value: kata-clh |
| 32 | - template: templates/job-db-sync.yaml |
| 33 | documentIndex: 3 |
| 34 | equal: |
| 35 | path: spec.template.spec.runtimeClassName |
| 36 | value: kata-clh |