Repository navigation
fix(bom): extract nested operator images - #1960
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthrough
Estimated code review effort: 4 (Complex) | ~45 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
pkg/bom/extract.go (1)
114-140: 🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy liftPropagate cancellation through structured-image traversal.
Discoverhas a cancellable context, but these new loops cannot observe it, so canceled discovery can continue scanning large rendered manifests. Threadcontext.Contextthrough extraction and checkctx.Done()during document, mapping, and recursive traversal.
pkg/bom/extract.go#L114-L140: check cancellation while scanning mapping entries and before recursive descent.pkg/bom/extract.go#L191-L216: check cancellation while parsing descriptor fields.As per coding guidelines, “Always check
ctx.Done()in loops and long-running operations in Go code.”🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/bom/extract.go` around lines 114 - 140, Thread the cancellable context from Discover through the extraction helpers and structured-image traversal. In pkg/bom/extract.go lines 114-140, check ctx.Done() while scanning mapping entries and before recursive descent; in lines 191-216, check cancellation while parsing descriptor fields. Preserve existing extraction behavior, returning or propagating the cancellation result promptly when the context is canceled at both affected sites.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@pkg/bom/extract.go`:
- Around line 114-140: Thread the cancellable context from Discover through the
extraction helpers and structured-image traversal. In pkg/bom/extract.go lines
114-140, check ctx.Done() while scanning mapping entries and before recursive
descent; in lines 191-216, check cancellation while parsing descriptor fields.
Preserve existing extraction behavior, returning or propagating the cancellation
result promptly when the context is canceled at both affected sites.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: 68bed652-b2af-49d5-9978-c41c6df2ff44
📒 Files selected for processing (5)
docs/user/container-images.mdpkg/bom/doc.gopkg/bom/extract.gopkg/bom/extract_test.gopkg/mirror/discover_test.go
fea59a3 to
267102a
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/bom/extract.go`:
- Around line 117-145: Make YAML traversal cancellable by threading the caller’s
context through ExtractImagesFromYAML and walkForImages, updating all callers
accordingly. Check for cancellation and return ctx.Err() before document,
mapping, and sequence iterations, including the loops shown, and propagate the
error through the traversal unchanged.
- Around line 201-232: The structured image-mapping parser around
nonNullImageMappingScalar must track whether repository and tag keys are
present, rejecting mappings with an explicit name unless both are provided;
preserve the existing omitted-name fallback to repository. Add invalid test
cases in pkg/bom/extract_test.go at lines 305-357 for name without repository
and name/repository without tag.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: 25bdff5e-6fb9-4302-afa8-93093629a54f
📒 Files selected for processing (6)
docs/user/container-images.mdpkg/bom/doc.gopkg/bom/extract.gopkg/bom/extract_test.gopkg/mirror/discover_test.gotools/bom/README.md
267102a to
c9b73ca
Compare
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/bom/extract.go`:
- Around line 207-248: Deduplicate the recognized-key handling in
imageReferenceFromMapping by replacing the filtering switch and subsequent
dispatch switch with one switch that validates each supported field and assigns
name, repository, or tag within its case. Preserve the existing scalar
validation errors, unknown-key skipping, and fallback behavior.
In `@pkg/mirror/discover_test.go`:
- Around line 291-296: Protect the kaiConfigRenderer.inputs append in Render
with a mutex, adding a mutex field to kaiConfigRenderer and locking around the
slice update. Keep the existing Render behavior and input recording unchanged
while making concurrent Discover errgroup calls safe under -race.
In `@pkg/mirror/discover.go`:
- Around line 319-336: The non-fatal error path in the manifest image extraction
flow should also emit a warning log before returning. Update the `extractErr`
handling in the `ExtractImagesFromYAML` caller to log the manifest path and
extraction error at warning level, while preserving the existing
invalid-descriptor error return and `ci.Warnings` append behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: ec284bc3-0253-43eb-98b2-9410e1e4a5b6
📒 Files selected for processing (9)
docs/user/air-gap-mirror.mddocs/user/cli-reference.mddocs/user/container-images.mdpkg/bom/doc.gopkg/bom/extract.gopkg/bom/extract_test.gopkg/mirror/discover.gopkg/mirror/discover_test.gotools/bom/README.md
c9b73ca to
45543ee
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tools/bom/main.go`:
- Around line 340-346: Update wrapInvalidDescriptorSurveyError and its call site
in the invalid structured image descriptor path to accept and include the pinned
version alongside the component and manifest context. Pass the parsed version
for variant failures such as [email protected], and add a regression
test covering this path and verifying the version appears in the resulting
error.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: 4693c466-f9f1-4c4e-a9da-a1cb6bab245c
📒 Files selected for processing (13)
docs/user/air-gap-mirror.mddocs/user/cli-reference.mddocs/user/container-images.mdpkg/bom/doc.gopkg/bom/extract.gopkg/bom/extract_test.gopkg/mirror/discover.gopkg/mirror/discover_test.gotools/bom/README.mdtools/bom/main.gotools/bom/main_test.gotools/bom/variants.gotools/bom/variants_test.go
ArangoGutierrez
left a comment
There was a problem hiding this comment.
Four issues, all in the new structured-descriptor path. The first two are blockers: each emits a wrong image reference where the pre-PR code emitted nothing, and that reference lands in both the air-gap mirror seed and the CycloneDX BOM. Checked by running the extractor against the PR head and against the merge base.
- The allowlist drops every other member, so
{registry: nvcr.io, repository: nvidia/foo, tag: v1}yieldsnvidia/foo:v1, whichParseImageRefresolves todocker.io— an air-gap mirror seeds from Docker Hub instead of NGC, and a siblingdigest:is dropped the same way so a pinned reference becomes floating. Before this PR both shapes emitted nothing, so this trades a visible gap for a silently wrong entry; failing closed on a presentregistryordigestmember would match the null-member handling just below. (pkg/bom/extract.go:213) - With
nameabsent,repositorymoves intonameandrepositoryis cleared, so thestrings.TrimRight(repository, "/")insidecombineCRDTripletnever runs —{repository: ghcr.io/kai-scheduler/kai-scheduler/, tag: v0.14.1}producesghcr.io/kai-scheduler/kai-scheduler/:v0.14.1.ParseImageRefkeeps that trailing slash inRepository, so the malformed reference reaches the mirror list and the CycloneDX PURL; trimming before the fallback assignment fixes it. (pkg/bom/extract.go:241) - An empty member is fatal but an absent one is not, so
{repository: ghcr.io/foo/bar, tag: ""}aborts the whole run while{repository: ghcr.io/foo/bar}is accepted and emits an untagged reference that resolves to:latest.tag: ""is the standard Helm idiom for "use appVersion" and there is no override flag, so a single chart bump that renders it turnsmake bom-docsandaicr mirror listinto hard failures — treating empty and absent alike keeps the fail-closed intent without that cliff. (pkg/bom/extract.go:258) stripHelmTemplatesdeletes directive-only lines before parsing, sovalue.Lineis a position in the stripped buffer rather than in the file. A manifest with two{{- ... }}lines above a badtagreports line 6 for a descriptor that sits on line 8, which points the operator at the wrong place in exactly the templated manifests underrecipes/components/*/manifests/that this path exists to survey. (pkg/bom/extract.go:225)
| for i := 0; i+1 < len(n.Content); i += 2 { | ||
| key, value := n.Content[i], n.Content[i+1] | ||
| switch key.Value { | ||
| case "name", imageRepositoryKey, "tag": |
There was a problem hiding this comment.
The allowlist drops every other member, so {registry: nvcr.io, repository: nvidia/foo, tag: v1} yields nvidia/foo:v1, which ParseImageRef resolves to docker.io — an air-gap mirror seeds from Docker Hub instead of NGC, and a sibling digest: is dropped the same way so a pinned reference becomes floating. Before this PR both shapes emitted nothing, so this trades a visible gap for a silently wrong entry; failing closed on a present registry or digest member would match the null-member handling just below.
There was a problem hiding this comment.
Fixed in ef9d8ee. A present registry or digest member in a recognized descriptor now fails closed with a structured descriptor error instead of emitting a partially-combined reference, so {registry, repository, tag} can no longer seed the mirror from docker.io and a sibling digest can no longer be silently dropped. Actually combining these members into the reference stays tracked in #1961. Added tests for both members.
| } | ||
| } | ||
| if !namePresent { | ||
| name = repository |
There was a problem hiding this comment.
With name absent, repository moves into name and repository is cleared, so the strings.TrimRight(repository, "/") inside combineCRDTriplet never runs — {repository: ghcr.io/kai-scheduler/kai-scheduler/, tag: v0.14.1} produces ghcr.io/kai-scheduler/kai-scheduler/:v0.14.1. ParseImageRef keeps that trailing slash in Repository, so the malformed reference reaches the mirror list and the CycloneDX PURL; trimming before the fallback assignment fixes it.
There was a problem hiding this comment.
Fixed in ef9d8ee. The name-absent fallback now trims the trailing slash before repository becomes the name, matching what combineCRDTriplet already does on the name-present path, so {repository: ghcr.io/kai-scheduler/kai-scheduler/, tag: v0.14.1} yields ghcr.io/kai-scheduler/kai-scheduler:v0.14.1. Added a test covering this shape.
| return "", false | ||
| } | ||
| value := strings.TrimSpace(n.Value) | ||
| return value, value != "" |
There was a problem hiding this comment.
An empty member is fatal but an absent one is not, so {repository: ghcr.io/foo/bar, tag: ""} aborts the whole run while {repository: ghcr.io/foo/bar} is accepted and emits an untagged reference that resolves to :latest. tag: "" is the standard Helm idiom for "use appVersion" and there is no override flag, so a single chart bump that renders it turns make bom-docs and aicr mirror list into hard failures — treating empty and absent alike keeps the fail-closed intent without that cliff.
There was a problem hiding this comment.
Fixed in ef9d8ee. A null or empty tag is now treated like an absent tag — the Helm use-appVersion idiom — so tag: "" emits the same untagged reference as an omitted tag instead of failing the whole survey. A non-scalar tag still fails closed, and name/repository keep the strict null/empty rejection. Added tests for both tag: "" and a bare tag: null.
| "invalid image descriptor member", | ||
| &invalidStructuredImageDescriptorError{ | ||
| field: key.Value, | ||
| line: value.Line, |
There was a problem hiding this comment.
stripHelmTemplates deletes directive-only lines before parsing, so value.Line is a position in the stripped buffer rather than in the file. A manifest with two {{- ... }} lines above a bad tag reports line 6 for a descriptor that sits on line 8, which points the operator at the wrong place in exactly the templated manifests under recipes/components/*/manifests/ that this path exists to survey.
There was a problem hiding this comment.
Fixed in ef9d8ee. stripHelmTemplates now blanks directive-only lines out instead of deleting them, so yaml.Node positions — and the line/column reported in descriptor errors — index the original file. Added a test asserting the reported line matches the file position when directive-only lines precede the bad descriptor.
82bcdbd to
ef9d8ee
Compare
There was a problem hiding this comment.
Actionable comments posted: 5
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/bom/extract_test.go`:
- Around line 275-352: Add a table-driven test case in the image-mapping tests
for a structured scalingPodImage entry, using a valid repository and tag and
asserting the expected image reference is extracted. Ensure the case exercises
the isStructuredImageKey allowlist path for scalingPodImage rather than only the
existing image keys.
In `@tools/bom/main.go`:
- Around line 385-391: Return walkErr directly in tools/bom/main.go lines
385-391 within the survey component manifest path, removing the
errors.PropagateOrWrap call. Also return the existing surveyComponent error
directly in tools/bom/variants.go lines 372-378 within the survey variant images
path; both errors already carry ErrCodeInvalidRequest and the required context.
- Around line 240-246: Update deriveVariants to replace its inline
name-to-component map construction with a call to indexComponentsByName, reusing
the existing helper and preserving the current map contents and behavior.
In `@tools/bom/README.md`:
- Around line 75-81: Update the structured-image acceptance documentation in
tools/bom/README.md lines 75-81 and docs/user/cli-reference.md lines 2633-2635
to allow null or empty tag values as Helm appVersion defaults, while rejecting
invalid name or repository values and non-scalar fields. Explicitly state that
registry and digest members are rejected in both documents.
In `@tools/bom/variants.go`:
- Around line 372-378: Remove the redundant errors.PropagateOrWrap call in the
survey variant image handling and return the existing error directly when
surveyComponent fails. Preserve the ErrCodeInvalidRequest code and let run
provide the expected variant name/version context through its existing wrapping.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: fe1c231a-076d-4ad0-bff4-a58a42cf5db0
📒 Files selected for processing (13)
docs/user/air-gap-mirror.mddocs/user/cli-reference.mddocs/user/container-images.mdpkg/bom/doc.gopkg/bom/extract.gopkg/bom/extract_test.gopkg/mirror/discover.gopkg/mirror/discover_test.gotools/bom/README.mdtools/bom/main.gotools/bom/main_test.gotools/bom/variants.gotools/bom/variants_test.go
| { | ||
| name: "operator image mappings with name repository and tag", | ||
| in: `apiVersion: kai.scheduler/v1 | ||
| kind: Config | ||
| metadata: | ||
| name: kai-config | ||
| spec: | ||
| binder: | ||
| service: | ||
| image: | ||
| name: binder | ||
| repository: ghcr.io/kai-scheduler/kai-scheduler | ||
| tag: &kaiTag v0.14.1 | ||
| pullPolicy: IfNotPresent | ||
| scheduler: | ||
| service: | ||
| image: | ||
| name: scheduler | ||
| repository: ghcr.io/kai-scheduler/kai-scheduler/ | ||
| tag: *kaiTag | ||
| operator: | ||
| image: | ||
| repository: ghcr.io/kai-scheduler/kai-scheduler/operator | ||
| tag: v0.14.1 | ||
| `, | ||
| want: []string{ | ||
| "ghcr.io/kai-scheduler/kai-scheduler/binder:v0.14.1", | ||
| "ghcr.io/kai-scheduler/kai-scheduler/operator:v0.14.1", | ||
| "ghcr.io/kai-scheduler/kai-scheduler/scheduler:v0.14.1", | ||
| }, | ||
| }, | ||
| { | ||
| name: "operator image mapping skips unresolved templates and incomplete descriptors", | ||
| in: `spec: | ||
| templated: | ||
| image: | ||
| name: "{{ .Values.image.name }}" | ||
| repository: ghcr.io/example | ||
| tag: v1.0.0 | ||
| missing: | ||
| image: | ||
| tag: v1.0.0 | ||
| `, | ||
| want: []string{}, | ||
| }, | ||
| { | ||
| // A trailing slash on repository must be trimmed in the | ||
| // name-absent fallback too, not only when repository is | ||
| // prepended to a separate name. | ||
| name: "operator image mapping trims trailing repository slash in name fallback", | ||
| in: `spec: | ||
| operator: | ||
| image: | ||
| repository: ghcr.io/kai-scheduler/kai-scheduler/ | ||
| tag: v0.14.1 | ||
| `, | ||
| want: []string{"ghcr.io/kai-scheduler/kai-scheduler:v0.14.1"}, | ||
| }, | ||
| { | ||
| // tag: "" and tag: null are the Helm "use appVersion" idiom — | ||
| // treated like an absent tag, emitting an untagged reference | ||
| // rather than failing the survey. | ||
| name: "operator image mapping treats empty and null tag as absent", | ||
| in: `spec: | ||
| empty: | ||
| image: | ||
| repository: ghcr.io/example/empty-tag | ||
| tag: "" | ||
| nulltag: | ||
| image: | ||
| repository: ghcr.io/example/null-tag | ||
| tag: | ||
| `, | ||
| want: []string{ | ||
| "ghcr.io/example/empty-tag", | ||
| "ghcr.io/example/null-tag", | ||
| }, | ||
| }, |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win
Add a scalingPodImage case to this table. isStructuredImageKey allowlists two keys, but every structured case here uses image:; the scalingPodImage: branch is only covered indirectly through pkg/mirror discovery tests, so a regression in the allowlist would not fail this package's unit tests.
♻️ Suggested additional case
{
+ name: "operator scalingPodImage descriptor",
+ in: `spec:
+ nodeScaleAdjuster:
+ args:
+ scalingPodImage:
+ name: scalingpod
+ repository: ghcr.io/kai-scheduler/kai-scheduler
+ tag: v0.14.1
+`,
+ want: []string{"ghcr.io/kai-scheduler/kai-scheduler/scalingpod:v0.14.1"},
+ },
+ {
name: "operator image mapping trims trailing repository slash in name fallback",📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| { | |
| name: "operator image mappings with name repository and tag", | |
| in: `apiVersion: kai.scheduler/v1 | |
| kind: Config | |
| metadata: | |
| name: kai-config | |
| spec: | |
| binder: | |
| service: | |
| image: | |
| name: binder | |
| repository: ghcr.io/kai-scheduler/kai-scheduler | |
| tag: &kaiTag v0.14.1 | |
| pullPolicy: IfNotPresent | |
| scheduler: | |
| service: | |
| image: | |
| name: scheduler | |
| repository: ghcr.io/kai-scheduler/kai-scheduler/ | |
| tag: *kaiTag | |
| operator: | |
| image: | |
| repository: ghcr.io/kai-scheduler/kai-scheduler/operator | |
| tag: v0.14.1 | |
| `, | |
| want: []string{ | |
| "ghcr.io/kai-scheduler/kai-scheduler/binder:v0.14.1", | |
| "ghcr.io/kai-scheduler/kai-scheduler/operator:v0.14.1", | |
| "ghcr.io/kai-scheduler/kai-scheduler/scheduler:v0.14.1", | |
| }, | |
| }, | |
| { | |
| name: "operator image mapping skips unresolved templates and incomplete descriptors", | |
| in: `spec: | |
| templated: | |
| image: | |
| name: "{{ .Values.image.name }}" | |
| repository: ghcr.io/example | |
| tag: v1.0.0 | |
| missing: | |
| image: | |
| tag: v1.0.0 | |
| `, | |
| want: []string{}, | |
| }, | |
| { | |
| // A trailing slash on repository must be trimmed in the | |
| // name-absent fallback too, not only when repository is | |
| // prepended to a separate name. | |
| name: "operator image mapping trims trailing repository slash in name fallback", | |
| in: `spec: | |
| operator: | |
| image: | |
| repository: ghcr.io/kai-scheduler/kai-scheduler/ | |
| tag: v0.14.1 | |
| `, | |
| want: []string{"ghcr.io/kai-scheduler/kai-scheduler:v0.14.1"}, | |
| }, | |
| { | |
| // tag: "" and tag: null are the Helm "use appVersion" idiom — | |
| // treated like an absent tag, emitting an untagged reference | |
| // rather than failing the survey. | |
| name: "operator image mapping treats empty and null tag as absent", | |
| in: `spec: | |
| empty: | |
| image: | |
| repository: ghcr.io/example/empty-tag | |
| tag: "" | |
| nulltag: | |
| image: | |
| repository: ghcr.io/example/null-tag | |
| tag: | |
| `, | |
| want: []string{ | |
| "ghcr.io/example/empty-tag", | |
| "ghcr.io/example/null-tag", | |
| }, | |
| }, | |
| { | |
| name: "operator image mappings with name repository and tag", | |
| in: `apiVersion: kai.scheduler/v1 | |
| kind: Config | |
| metadata: | |
| name: kai-config | |
| spec: | |
| binder: | |
| service: | |
| image: | |
| name: binder | |
| repository: ghcr.io/kai-scheduler/kai-scheduler | |
| tag: &kaiTag v0.14.1 | |
| pullPolicy: IfNotPresent | |
| scheduler: | |
| service: | |
| image: | |
| name: scheduler | |
| repository: ghcr.io/kai-scheduler/kai-scheduler/ | |
| tag: *kaiTag | |
| operator: | |
| image: | |
| repository: ghcr.io/kai-scheduler/kai-scheduler/operator | |
| tag: v0.14.1 | |
| `, | |
| want: []string{ | |
| "ghcr.io/kai-scheduler/kai-scheduler/binder:v0.14.1", | |
| "ghcr.io/kai-scheduler/kai-scheduler/operator:v0.14.1", | |
| "ghcr.io/kai-scheduler/kai-scheduler/scheduler:v0.14.1", | |
| }, | |
| }, | |
| { | |
| name: "operator image mapping skips unresolved templates and incomplete descriptors", | |
| in: `spec: | |
| templated: | |
| image: | |
| name: "{{ .Values.image.name }}" | |
| repository: ghcr.io/example | |
| tag: v1.0.0 | |
| missing: | |
| image: | |
| tag: v1.0.0 | |
| `, | |
| want: []string{}, | |
| }, | |
| { | |
| name: "operator scalingPodImage descriptor", | |
| in: `spec: | |
| nodeScaleAdjuster: | |
| args: | |
| scalingPodImage: | |
| name: scalingpod | |
| repository: ghcr.io/kai-scheduler/kai-scheduler | |
| tag: v0.14.1 | |
| `, | |
| want: []string{"ghcr.io/kai-scheduler/kai-scheduler/scalingpod:v0.14.1"}, | |
| }, | |
| { | |
| // A trailing slash on repository must be trimmed in the | |
| // name-absent fallback too, not only when repository is | |
| // prepended to a separate name. | |
| name: "operator image mapping trims trailing repository slash in name fallback", | |
| in: `spec: | |
| operator: | |
| image: | |
| repository: ghcr.io/kai-scheduler/kai-scheduler/ | |
| tag: v0.14.1 | |
| `, | |
| want: []string{"ghcr.io/kai-scheduler/kai-scheduler:v0.14.1"}, | |
| }, | |
| { | |
| // tag: "" and tag: null are the Helm "use appVersion" idiom — | |
| // treated like an absent tag, emitting an untagged reference | |
| // rather than failing the survey. | |
| name: "operator image mapping treats empty and null tag as absent", | |
| in: `spec: | |
| empty: | |
| image: | |
| repository: ghcr.io/example/empty-tag | |
| tag: "" | |
| nulltag: | |
| image: | |
| repository: ghcr.io/example/null-tag | |
| tag: | |
| `, | |
| want: []string{ | |
| "ghcr.io/example/empty-tag", | |
| "ghcr.io/example/null-tag", | |
| }, | |
| }, |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pkg/bom/extract_test.go` around lines 275 - 352, Add a table-driven test case
in the image-mapping tests for a structured scalingPodImage entry, using a valid
repository and tag and asserting the expected image reference is extracted.
Ensure the case exercises the isStructuredImageKey allowlist path for
scalingPodImage rather than only the existing image keys.
| if bom.IsInvalidStructuredImageDescriptor(walkErr) { | ||
| return res, errors.PropagateOrWrap( | ||
| walkErr, | ||
| errors.ErrCodeInvalidRequest, | ||
| fmt.Sprintf("survey component %q manifests", c.Name), | ||
| ) | ||
| } |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win
Both survey paths re-wrap an error that already carries ErrCodeInvalidRequest. wrapInvalidDescriptorSurveyError sets the code and the component/manifest context, so errors.PropagateOrWrap propagates the error verbatim at both sites and the supplied messages are silently discarded.
tools/bom/main.go#L385-L391: returnwalkErrdirectly instead of re-wrapping with"survey component %q manifests".tools/bom/variants.go#L372-L378: return thesurveyComponenterror directly instead of re-wrapping with"survey variant images"; variant name/version context is already added byrun.
Based on learnings, errors already created with pkg/errors and the correct structured code should be propagated as-is rather than re-wrapped.
📍 Affects 2 files
tools/bom/main.go#L385-L391(this comment)tools/bom/variants.go#L372-L378
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@tools/bom/main.go` around lines 385 - 391, Return walkErr directly in
tools/bom/main.go lines 385-391 within the survey component manifest path,
removing the errors.PropagateOrWrap call. Also return the existing
surveyComponent error directly in tools/bom/variants.go lines 372-378 within the
survey variant images path; both errors already carry ErrCodeInvalidRequest and
the required context.
Source: Learnings
| if err != nil { | ||
| return v, errors.PropagateOrWrap( | ||
| err, | ||
| errors.ErrCodeInvalidRequest, | ||
| "survey variant images", | ||
| ) | ||
| } |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
Redundant re-wrap of an already-coded error. surveyComponent returns ErrCodeInvalidRequest from wrapInvalidDescriptorSurveyError, so PropagateOrWrap propagates it verbatim and "survey variant images" never reaches the message — the variant name/version context the caller expects comes from run's wrap instead. Same root cause as tools/bom/main.go Lines 385-391.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@tools/bom/variants.go` around lines 372 - 378, Remove the redundant
errors.PropagateOrWrap call in the survey variant image handling and return the
existing error directly when surveyComponent fails. Preserve the
ErrCodeInvalidRequest code and let run provide the expected variant name/version
context through its existing wrapping.
Source: Learnings
ef9d8ee to
fae165e
Compare
Signed-off-by: Yuan Chen <[email protected]>
fae165e to
37145f9
Compare
njhensley
left a comment
There was a problem hiding this comment.
Approving. Reviewed via a multi-persona panel (correctness, supply-chain, operability, test-coverage) plus an adversarial meta-reviewer, then re-reviewed the delta after the revision.
The substantive change — recognizing operator-style image: {name, repository, tag} / scalingPodImage descriptors, expanding the KAI inventory 2 → 11 images (repo total 87 → 96) — is correct and well-tested, and the revision resolves every issue @ArangoGutierrez raised:
- registry/digest members now fail closed (
ErrCodeInvalidRequest) instead of silently emitting a wrong-registry / un-pinned reference — consistent with the PR's own fail-closed principle, and tracked for real support in #1961. - empty/null
tagis now treated as absent (the Helm appVersion idiom) rather than aborting the wholemirror list/ BOM run;name/repositorypresent-empty stay fatal (correct). - name-absent + trailing-slash repository now trims the slash, so no more
repo/:tag/ empty-name PURL. - descriptor-error line/column now index the original file (
stripHelmTemplatesblanks directive-only lines instead of deleting them).
Each fix ships with a targeted test. pkg/bom and tools/bom pass at this head; BOM regenerates cleanly at 96 images (no current component trips the new fail-closed path). Verified the error wrap chain preserves IsInvalidStructuredImageDescriptor through PropagateOrWrap/WrapWithContext, so mirror list exits nonzero with an actionable component + manifest + field message.
Only residual is an optional nitpick — no test pins numeric/unquoted tag behavior (tag: 1.28); non-blocking. Nice work, and credit to @ArangoGutierrez for the sharp catches.
…alth checks Closes NVIDIA#1246. - kueue: resourceflavors/clusterqueues/localqueues.kueue.x-k8s.io (verified via in-tree manifests) - kubeflow-trainer: trainjobs.trainer.kubeflow.org (verified via tests/chainsaw/ai-conformance/kind-training-kubeflow/assert-crds.yaml) - network-operator: nicclusterpolicies.mellanox.com (verified via components/network-operator/manifests/nic-cluster-policy-aks.yaml) - k8s-nim-operator: nimservices/nimcaches/nimpipelines.apps.nvidia.com (verified via docs/conformance/cncf/v1.35/nim-eks/evidence/robust-operator.md) - gatekeeper: constrainttemplates.templates.gatekeeper.sh + configs.config.gatekeeper.sh (needs live-cluster confirmation against chart 3.22.2, flagged inline) - slinky-slurm-operator: negative finding documented - crds.enabled: false, CRDs owned entirely by sibling slinky-slurm-operator-crds chart Signed-off-by: Mohit Yadav <[email protected]> docs: restore slinky-slurm-operator health check, add comment-only negative finding Signed-off-by: Mohit Yadav <[email protected]> fix: address review comments on NVIDIA#1246 CRD backfill fix: sync kubeflow-trainer CRD docs with asserted trainingruntimes (coderabbitai) address review: soften gatekeeper verification wording, fix volatile line refs, rename CRD step for consistency chore: pausing scans chore: skills cleanup chore(deps): Update python Docker tag to v3.14 (NVIDIA#1906) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Chmarny <[email protected]> revert(validators): pin aiperf-bench base back to python:3.13-slim (NVIDIA#1909) Signed-off-by: Nathan Hensley <[email protected]> fix(rekor-monitor): correlate identity via release-workflow run history (NVIDIA#1903) Signed-off-by: Brian Lockwood <[email protected]> Co-authored-by: Mark Chmarny <[email protected]> fix(validators): multi-stage aiperf-bench build; bump aiperf to 0.11.0 (NVIDIA#1912) Signed-off-by: Nathan Hensley <[email protected]> feat(skills): download UAT debug bundles for failure triage (NVIDIA#1913) Signed-off-by: Nathan Hensley <[email protected]> chore: deps: bump renovatebot/github-action from 46.1.20 to 46.1.21 (NVIDIA#1923) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(skills): add aicr-triage skill for project board triage (NVIDIA#1911) chore(deps): regenerate stale THIRD_PARTY_NOTICES.md (NVIDIA#1926) Signed-off-by: Nathan Hensley <[email protected]> feat(server): non-interactive bundle attestation for /v1/bundle (NVIDIA#1891) chore(deps): Update dependency awscli to v1.45.52 (NVIDIA#1905) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Chmarny <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> ci(stale): drop phantom priority/critical exempt label (NVIDIA#1925) Signed-off-by: Yuan Chen <[email protected]> chore(deps): Update dependency sigstore/cosign to v3.1.2 (NVIDIA#1924) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> feat(skills): add aicr-cross-review skill for multi-agent PR review (NVIDIA#1915) Signed-off-by: Yuan Chen <[email protected]> chore: deps: bump github.com/prometheus/client_golang from 1.24.0 to 1.24.1 (NVIDIA#1922) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> fix: resolve goconst and errorlint warnings across OCI, coverage, validators (NVIDIA#1916) Signed-off-by: Andrew White <[email protected]> chore(deps): Update testing-tools (NVIDIA#1934) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> fix(skills): harden UAT debug-bundle triage against malformed input (NVIDIA#1914) Signed-off-by: Nathan Hensley <[email protected]> chore: deps: bump actions/stale from 10.4.0 to 11.0.0 (NVIDIA#1931) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> fix(ci): sync coverage docs to 80% and fail closed on bad threshold (NVIDIA#1937) docs: correct issue/PR lifecycle table, fix reminder dedupe (NVIDIA#1921) Signed-off-by: Yuan Chen <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> chore: deps: bump actions/checkout from 7.0.0 to 7.0.1 (NVIDIA#1930) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nathan Hensley <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> fix(recipe,client): reject duplicate ComponentRef names, omit disable… (NVIDIA#1917) Co-authored-by: Nathan Hensley <[email protected]> fix(validators): pass aiperf model via --model flag (NVIDIA#1939) Signed-off-by: Nathan Hensley <[email protected]> fix(skills): recover cross-review lanes, harden consensus/fallback (NVIDIA#1932) Signed-off-by: Yuan Chen <[email protected]> feat(rekor-monitor): resumable identity scan to catch up large backlogs (NVIDIA#1929) Signed-off-by: Brian Lockwood <[email protected]> fix(bundler): create argocd-helm static/ only when populated (NVIDIA#1944) Signed-off-by: Yuan Chen <[email protected]> chore: deps: update hashicorp/azurerm requirement from ~> 4.0 to ~> 5.0 in /infra/uat-azure-account (NVIDIA#1945) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> fix(ci): run validators/ unit tests in make test, exclude from coverage gate (NVIDIA#1918) Signed-off-by: Mohit Yadav <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> feat(corroborate): improve evidence dashboard UX (NVIDIA#1935) Signed-off-by: Nathan Hensley <[email protected]> fix(api): accept versionless legacy bundle recipes (NVIDIA#1943) Signed-off-by: Yuan Chen <[email protected]> test(bundler): cover argocd-helm OCP bundling and pin its error contract (NVIDIA#1950) Signed-off-by: Yuan Chen <[email protected]> chore: remove stray MOFED debug artifacts from repo root (NVIDIA#1955) Signed-off-by: Nathan Hensley <[email protected]> fix(deps): bump network-operator default to v26.4.1 (NVIDIA#1938) Signed-off-by: Atif Mahmood <[email protected]> Co-authored-by: Atif Mahmood <[email protected]> chore: deps: bump renovatebot/github-action from 46.1.21 to 46.2.0 (NVIDIA#1964) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): Update ministackorg/ministack Docker tag to v1.4.7 (NVIDIA#1965) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> feat(recipe): implement the ADR-015 profile core (NVIDIA#1933) Signed-off-by: Yuan Chen <[email protected]> fix(bom): extract nested operator images (NVIDIA#1960) Signed-off-by: Yuan Chen <[email protected]> address yuanchen8911 review: bump network-operator to 26.4.1 with nicnodepolicies exclusion, close gatekeeper TODO with verification
…alth checks Closes NVIDIA#1246. - kueue: resourceflavors/clusterqueues/localqueues.kueue.x-k8s.io (verified via in-tree manifests) - kubeflow-trainer: trainjobs.trainer.kubeflow.org (verified via tests/chainsaw/ai-conformance/kind-training-kubeflow/assert-crds.yaml) - network-operator: nicclusterpolicies.mellanox.com (verified via components/network-operator/manifests/nic-cluster-policy-aks.yaml) - k8s-nim-operator: nimservices/nimcaches/nimpipelines.apps.nvidia.com (verified via docs/conformance/cncf/v1.35/nim-eks/evidence/robust-operator.md) - gatekeeper: constrainttemplates.templates.gatekeeper.sh + configs.config.gatekeeper.sh (needs live-cluster confirmation against chart 3.22.2, flagged inline) - slinky-slurm-operator: negative finding documented - crds.enabled: false, CRDs owned entirely by sibling slinky-slurm-operator-crds chart Signed-off-by: Mohit Yadav <[email protected]> docs: restore slinky-slurm-operator health check, add comment-only negative finding Signed-off-by: Mohit Yadav <[email protected]> fix: address review comments on NVIDIA#1246 CRD backfill fix: sync kubeflow-trainer CRD docs with asserted trainingruntimes (coderabbitai) address review: soften gatekeeper verification wording, fix volatile line refs, rename CRD step for consistency chore: pausing scans chore: skills cleanup chore(deps): Update python Docker tag to v3.14 (NVIDIA#1906) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Chmarny <[email protected]> revert(validators): pin aiperf-bench base back to python:3.13-slim (NVIDIA#1909) Signed-off-by: Nathan Hensley <[email protected]> fix(rekor-monitor): correlate identity via release-workflow run history (NVIDIA#1903) Signed-off-by: Brian Lockwood <[email protected]> Co-authored-by: Mark Chmarny <[email protected]> fix(validators): multi-stage aiperf-bench build; bump aiperf to 0.11.0 (NVIDIA#1912) Signed-off-by: Nathan Hensley <[email protected]> feat(skills): download UAT debug bundles for failure triage (NVIDIA#1913) Signed-off-by: Nathan Hensley <[email protected]> chore: deps: bump renovatebot/github-action from 46.1.20 to 46.1.21 (NVIDIA#1923) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(skills): add aicr-triage skill for project board triage (NVIDIA#1911) chore(deps): regenerate stale THIRD_PARTY_NOTICES.md (NVIDIA#1926) Signed-off-by: Nathan Hensley <[email protected]> feat(server): non-interactive bundle attestation for /v1/bundle (NVIDIA#1891) chore(deps): Update dependency awscli to v1.45.52 (NVIDIA#1905) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Chmarny <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> ci(stale): drop phantom priority/critical exempt label (NVIDIA#1925) Signed-off-by: Yuan Chen <[email protected]> chore(deps): Update dependency sigstore/cosign to v3.1.2 (NVIDIA#1924) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> feat(skills): add aicr-cross-review skill for multi-agent PR review (NVIDIA#1915) Signed-off-by: Yuan Chen <[email protected]> chore: deps: bump github.com/prometheus/client_golang from 1.24.0 to 1.24.1 (NVIDIA#1922) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> fix: resolve goconst and errorlint warnings across OCI, coverage, validators (NVIDIA#1916) Signed-off-by: Andrew White <[email protected]> chore(deps): Update testing-tools (NVIDIA#1934) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> fix(skills): harden UAT debug-bundle triage against malformed input (NVIDIA#1914) Signed-off-by: Nathan Hensley <[email protected]> chore: deps: bump actions/stale from 10.4.0 to 11.0.0 (NVIDIA#1931) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> fix(ci): sync coverage docs to 80% and fail closed on bad threshold (NVIDIA#1937) docs: correct issue/PR lifecycle table, fix reminder dedupe (NVIDIA#1921) Signed-off-by: Yuan Chen <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> chore: deps: bump actions/checkout from 7.0.0 to 7.0.1 (NVIDIA#1930) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nathan Hensley <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> fix(recipe,client): reject duplicate ComponentRef names, omit disable… (NVIDIA#1917) Co-authored-by: Nathan Hensley <[email protected]> fix(validators): pass aiperf model via --model flag (NVIDIA#1939) Signed-off-by: Nathan Hensley <[email protected]> fix(skills): recover cross-review lanes, harden consensus/fallback (NVIDIA#1932) Signed-off-by: Yuan Chen <[email protected]> feat(rekor-monitor): resumable identity scan to catch up large backlogs (NVIDIA#1929) Signed-off-by: Brian Lockwood <[email protected]> fix(bundler): create argocd-helm static/ only when populated (NVIDIA#1944) Signed-off-by: Yuan Chen <[email protected]> chore: deps: update hashicorp/azurerm requirement from ~> 4.0 to ~> 5.0 in /infra/uat-azure-account (NVIDIA#1945) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> fix(ci): run validators/ unit tests in make test, exclude from coverage gate (NVIDIA#1918) Signed-off-by: Mohit Yadav <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> feat(corroborate): improve evidence dashboard UX (NVIDIA#1935) Signed-off-by: Nathan Hensley <[email protected]> fix(api): accept versionless legacy bundle recipes (NVIDIA#1943) Signed-off-by: Yuan Chen <[email protected]> test(bundler): cover argocd-helm OCP bundling and pin its error contract (NVIDIA#1950) Signed-off-by: Yuan Chen <[email protected]> chore: remove stray MOFED debug artifacts from repo root (NVIDIA#1955) Signed-off-by: Nathan Hensley <[email protected]> fix(deps): bump network-operator default to v26.4.1 (NVIDIA#1938) Signed-off-by: Atif Mahmood <[email protected]> Co-authored-by: Atif Mahmood <[email protected]> chore: deps: bump renovatebot/github-action from 46.1.21 to 46.2.0 (NVIDIA#1964) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): Update ministackorg/ministack Docker tag to v1.4.7 (NVIDIA#1965) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> feat(recipe): implement the ADR-015 profile core (NVIDIA#1933) Signed-off-by: Yuan Chen <[email protected]> fix(bom): extract nested operator images (NVIDIA#1960) Signed-off-by: Yuan Chen <[email protected]> address yuanchen8911 review: bump network-operator to 26.4.1 with nicnodepolicies exclusion, close gatekeeper TODO with verification
Summary
Extend BOM and mirror image discovery to recognize operator-style
image: {name, repository, tag}mappings and KAI’sscalingPodImagedescriptor. Fail closed on invalid recognized descriptors so BOM and mirror output cannot succeed while omitting a runtime-defaulted image.Motivation / Context
KAI Scheduler declares operator-managed operand images as mapping-valued descriptors, while the shared extractor recognized only scalar
image:values. The committed BOM therefore listed only the operator and CRD upgrader, and air-gap outputs omitted binder, scheduler, podgrouper, admission, scalingpod, and the other rendered operands.The KAI operator defaults a missing binder image name at runtime. A
binder.image.name=nulloverride previously caused AICR to omit binder silently even though the deployment still pulled it.This is separate from the incomplete chart-reference report in #1954. It supersedes the scheduler downgrade proposed by draft #1958, which would not fix that integration. Unsupported descriptor shapes discovered during review are tracked separately in #1961.
Fixes: N/A
Related: #1954, #1961
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component/*)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)Implementation Notes
imageandscalingPodImagenodes usingname,repository, andtagfields.nameis absent. A present null, empty, or non-scalar recognized member returns a structured invalid-request error.mirror listand the BOM generator, including non-strict scheduled generation, instead of publishing a known-incomplete image set.registryordigestmember in a recognized descriptor instead of silently dropping it, so a partially-combined reference cannot resolve against the wrong registry or lose a digest pin. fix(bom): handle unsupported structured image descriptor shapes safely #1961 remains open for actually combining these members.tag(the Helm appVersion idiom) like an absent tag instead of failing the survey; a non-scalar tag still fails closed.--setvalues.docs/user/container-images.md; the KAI inventory expands from 2 to 11 images and the repository-wide unique count from 87 to 96.Testing
All focused gates passed. Coverage changed as follows:
pkg/bom: 95.8% → 96.1%pkg/mirror: 80.7% → 81.6% (rebased baseline; feat(recipe): implement the ADR-015 profile core #1933 rewrote the mirror override machinery, soTestSetNestedValue/splitPathwere dropped with the removed helper and the manifest-only test refs use Helm type per the new component-ref coherence rules)tools/bom: 83.0% → 83.1%The autoscaling reproduction includes
scalingpod:v0.14.1. The null-name reproduction exits 2, identifieskai-schedulerand the invalidnamefield, and writes no mirror output.Full
make qualifywas run locally: test-coverage (with-race, 80.8% vs the 80% floor), lint, tuning-check, e2e, scan, and license-check all passed. The only local failures weretests/releasepolicyscript-deadline timeouts that reproduce only under full-suite parallel load on the dev machine, pass in isolation on both this branch andorigin/main, and touch a tree with zero diff frommainthat imports none of this PR's packages.Risk Assessment
Rollout notes: Regenerate mirror manifests or bundles to include the newly discovered KAI operand images. Invalid mapping-valued image overrides now fail instead of producing an incomplete mirror list; no configuration migration is required for valid descriptors.
Checklist
make testwith-race)make lint)git commit -S) — GPG signing info