|
4 | 4 | config, |
5 | 5 | curPkgs, |
6 | 6 | lib, |
7 | | - mkNCSI, |
8 | 7 | subPath, |
9 | 8 | inputs, |
10 | 9 | ... |
|
60 | 59 | }; |
61 | 60 | }; |
62 | 61 | kubernetes.resources.${cfg.namespace} = { |
63 | | - ConfigMap.inputs.data = inputs; |
64 | | - Job.flake-hello = mkNCSI { |
| 62 | + ConfigMap.inputs = { |
| 63 | + metadata.labels = cfg.labels; |
| 64 | + data = inputs; |
| 65 | + }; |
| 66 | + Job.flake-hello = { |
| 67 | + metadata.labels = cfg.labels // { |
| 68 | + "app.kubernetes.io/component" = "ci-test"; |
| 69 | + }; |
65 | 70 | spec = { |
66 | 71 | template = { |
67 | 72 | spec = { |
|
77 | 82 | }; |
78 | 83 | }; |
79 | 84 | }; |
80 | | - Job.expr-hello = mkNCSI { |
| 85 | + Job.expr-hello = { |
| 86 | + metadata.labels = cfg.labels // { |
| 87 | + "app.kubernetes.io/component" = "ci-test"; |
| 88 | + }; |
81 | 89 | spec = { |
82 | 90 | template = { |
83 | 91 | spec = { |
|
117 | 125 | }; |
118 | 126 | }; |
119 | 127 | }; |
120 | | - Job.path-hello = mkNCSI { |
| 128 | + Job.path-hello = { |
| 129 | + metadata.labels = cfg.labels // { |
| 130 | + "app.kubernetes.io/component" = "ci-test"; |
| 131 | + }; |
121 | 132 | spec = { |
122 | 133 | template = { |
123 | 134 | spec = { |
|
134 | 145 | }; |
135 | 146 | }; |
136 | 147 | }; |
137 | | - Job.commandpath-hello = mkNCSI { |
| 148 | + Job.commandpath-hello = { |
| 149 | + metadata.labels = cfg.labels // { |
| 150 | + "app.kubernetes.io/component" = "ci-test"; |
| 151 | + }; |
138 | 152 | spec = { |
139 | 153 | template = { |
140 | 154 | spec = { |
|
152 | 166 | }; |
153 | 167 | }; |
154 | 168 | }; |
155 | | - Job.env-ssl = mkNCSI { |
| 169 | + Job.env-ssl = { |
| 170 | + metadata.labels = cfg.labels // { |
| 171 | + "app.kubernetes.io/component" = "ci-test"; |
| 172 | + }; |
156 | 173 | spec = { |
157 | 174 | template = { |
158 | 175 | spec = { |
|
229 | 246 | }; |
230 | 247 | }; |
231 | 248 | # Test failure scenarios for event reporting |
232 | | - Job.invalid-storepath-hello = mkNCSI { |
| 249 | + Job.invalid-storepath-hello = { |
| 250 | + metadata.labels = cfg.labels // { |
| 251 | + "app.kubernetes.io/component" = "ci-test"; |
| 252 | + }; |
233 | 253 | spec = { |
234 | 254 | template = { |
235 | 255 | spec = { |
|
246 | 266 | }; |
247 | 267 | }; |
248 | 268 | }; |
249 | | - Job.invalid-flake-hello = mkNCSI { |
| 269 | + Job.invalid-flake-hello = { |
| 270 | + metadata.labels = cfg.labels // { |
| 271 | + "app.kubernetes.io/component" = "ci-test"; |
| 272 | + }; |
250 | 273 | spec = { |
251 | 274 | template = { |
252 | 275 | spec = { |
|
262 | 285 | }; |
263 | 286 | }; |
264 | 287 | }; |
265 | | - Job.invalid-expr-hello = mkNCSI { |
| 288 | + Job.invalid-expr-hello = { |
| 289 | + metadata.labels = cfg.labels // { |
| 290 | + "app.kubernetes.io/component" = "ci-test"; |
| 291 | + }; |
266 | 292 | spec = { |
267 | 293 | template = { |
268 | 294 | spec = { |
|
0 commit comments