Dong Ma | a37a7b1 | 2025-02-12 02:49:32 +0000 | [diff] [blame] | 1 | suite: runtimeclass |
| 2 | tests: |
| 3 | - it: should support not having a runtime class |
| 4 | templates: |
| 5 | - templates/daemonset-health-manager.yaml |
| 6 | - templates/deployment-api.yaml |
| 7 | - templates/deployment-housekeeping.yaml |
| 8 | - templates/deployment-worker.yaml |
| 9 | - templates/job-db-sync.yaml |
Dong Ma | 36b8922 | 2025-02-13 16:15:52 +0000 | [diff] [blame] | 10 | - templates/job-bootstrap.yaml |
Dong Ma | a37a7b1 | 2025-02-12 02:49:32 +0000 | [diff] [blame] | 11 | asserts: |
| 12 | - template: templates/daemonset-health-manager.yaml |
| 13 | documentIndex: 4 |
| 14 | notExists: |
| 15 | path: spec.template.spec.runtimeClassName |
| 16 | - template: templates/deployment-api.yaml |
| 17 | documentIndex: 3 |
| 18 | notExists: |
| 19 | path: spec.template.spec.runtimeClassName |
| 20 | - template: templates/deployment-housekeeping.yaml |
| 21 | documentIndex: 3 |
| 22 | notExists: |
| 23 | path: spec.template.spec.runtimeClassName |
| 24 | - template: templates/deployment-worker.yaml |
| 25 | documentIndex: 3 |
| 26 | notExists: |
| 27 | path: spec.template.spec.runtimeClassName |
| 28 | - template: templates/job-db-sync.yaml |
| 29 | documentIndex: 3 |
| 30 | notExists: |
| 31 | path: spec.template.spec.runtimeClassName |
Dong Ma | 36b8922 | 2025-02-13 16:15:52 +0000 | [diff] [blame] | 32 | - template: templates/job-bootstrap.yaml |
| 33 | documentIndex: 1 |
| 34 | notExists: |
| 35 | path: spec.template.spec.runtimeClassName |
Dong Ma | a37a7b1 | 2025-02-12 02:49:32 +0000 | [diff] [blame] | 36 | |
| 37 | - it: should support setting a runtime class |
| 38 | templates: |
| 39 | - templates/daemonset-health-manager.yaml |
| 40 | - templates/deployment-api.yaml |
| 41 | - templates/deployment-housekeeping.yaml |
| 42 | - templates/deployment-worker.yaml |
| 43 | - templates/job-db-sync.yaml |
Dong Ma | 36b8922 | 2025-02-13 16:15:52 +0000 | [diff] [blame] | 44 | - templates/job-bootstrap.yaml |
Dong Ma | a37a7b1 | 2025-02-12 02:49:32 +0000 | [diff] [blame] | 45 | set: |
| 46 | pod: |
| 47 | runtimeClassName: |
| 48 | octavia_health_manager: kata-clh |
| 49 | octavia_api: kata-clh |
| 50 | octavia_housekeeping: kata-clh |
| 51 | octavia_worker: kata-clh |
| 52 | db_sync: kata-clh |
Dong Ma | 36b8922 | 2025-02-13 16:15:52 +0000 | [diff] [blame] | 53 | bootstrap: kata-clh |
Dong Ma | a37a7b1 | 2025-02-12 02:49:32 +0000 | [diff] [blame] | 54 | asserts: |
| 55 | - template: templates/daemonset-health-manager.yaml |
| 56 | documentIndex: 4 |
| 57 | equal: |
| 58 | path: spec.template.spec.runtimeClassName |
| 59 | value: kata-clh |
| 60 | - template: templates/deployment-api.yaml |
| 61 | documentIndex: 3 |
| 62 | equal: |
| 63 | path: spec.template.spec.runtimeClassName |
| 64 | value: kata-clh |
| 65 | - template: templates/deployment-housekeeping.yaml |
| 66 | documentIndex: 3 |
| 67 | equal: |
| 68 | path: spec.template.spec.runtimeClassName |
| 69 | value: kata-clh |
| 70 | - template: templates/deployment-worker.yaml |
| 71 | documentIndex: 3 |
| 72 | equal: |
| 73 | path: spec.template.spec.runtimeClassName |
| 74 | value: kata-clh |
| 75 | - template: templates/job-db-sync.yaml |
| 76 | documentIndex: 3 |
| 77 | equal: |
| 78 | path: spec.template.spec.runtimeClassName |
| 79 | value: kata-clh |
Dong Ma | 36b8922 | 2025-02-13 16:15:52 +0000 | [diff] [blame] | 80 | - template: templates/job-bootstrap.yaml |
| 81 | documentIndex: 1 |
| 82 | equal: |
| 83 | path: spec.template.spec.runtimeClassName |
| 84 | value: kata-clh |