Commit 50da51d
committed
Make 'inaccessible_parent_*' rules logic clearer
This commit adds the helper function 'labels._has_parent', that checks
if a parent image is specified in the base image annotations.
This helper function is used to make the
'labels.inaccessible_parent_manifest' and
'labels.inaccessible_parent_config' clearer: these rules will only be
evaluated if a parent is actually specified, otherwise they will be
skipped.
This prevents a bug that called builtin oci functions with invalid
parameters (that caused an obscure error, like the one in the linked
support ticket).
Note: we considered adding a rule that checks that the parent image
annotations are always specified in the base image, but it turns out
this is not always the case: bundle image manifests are usually built
'FROM scratch', meaning that they will have empty parent annotations.
Also common image manifests might have the same 'FROM scratch' build.
Ref: https://issues.redhat.com/browse/EC-1402
Ref: https://issues.redhat.com/browse/KFLUXSPRT-43271 parent a14e679 commit 50da51d
File tree
3 files changed
+18
-3
lines changed- antora/docs/modules/ROOT/pages/packages
- policy/release/labels
3 files changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| 214 | + | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
| |||
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
238 | 250 | | |
239 | 251 | | |
240 | 252 | | |
241 | 253 | | |
| 254 | + | |
| 255 | + | |
242 | 256 | | |
| 257 | + | |
243 | 258 | | |
244 | 259 | | |
245 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| |||
0 commit comments