From 37d8b228b03c217a38614d3f5198145ff4eb970b Mon Sep 17 00:00:00 2001 From: Socialpranker <273312799+Socialpranker@users.noreply.github.com> Date: Thu, 9 Jul 2026 12:38:51 +0200 Subject: [PATCH 1/2] Fix ObservedExclusionList doc-comment field reference The doc-comment referenced spec.lastScanResult, but LastScanResult lives on ImageRepositoryStatus, not the spec. Fixed in both api/v1 and api/v1beta2, and regenerated the CRD. Assisted-by: Claude Code/claude-sonnet-5 Signed-off-by: Socialpranker <273312799+Socialpranker@users.noreply.github.com> --- api/v1/imagerepository_types.go | 2 +- api/v1beta2/imagerepository_types.go | 2 +- config/crd/bases/image.toolkit.fluxcd.io_imagerepositories.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v1/imagerepository_types.go b/api/v1/imagerepository_types.go index ca6d2921..180b6042 100644 --- a/api/v1/imagerepository_types.go +++ b/api/v1/imagerepository_types.go @@ -155,7 +155,7 @@ type ImageRepositoryStatus struct { // ObservedExclusionList is a list of observed exclusion list. It reflects // the exclusion rules used for the observed scan result in - // spec.lastScanResult. + // status.lastScanResult. ObservedExclusionList []string `json:"observedExclusionList,omitempty"` meta.ReconcileRequestStatus `json:",inline"` diff --git a/api/v1beta2/imagerepository_types.go b/api/v1beta2/imagerepository_types.go index 75c95160..ffadeb2e 100644 --- a/api/v1beta2/imagerepository_types.go +++ b/api/v1beta2/imagerepository_types.go @@ -159,7 +159,7 @@ type ImageRepositoryStatus struct { // ObservedExclusionList is a list of observed exclusion list. It reflects // the exclusion rules used for the observed scan result in - // spec.lastScanResult. + // status.lastScanResult. ObservedExclusionList []string `json:"observedExclusionList,omitempty"` meta.ReconcileRequestStatus `json:",inline"` diff --git a/config/crd/bases/image.toolkit.fluxcd.io_imagerepositories.yaml b/config/crd/bases/image.toolkit.fluxcd.io_imagerepositories.yaml index 3e3e7b45..678ad753 100644 --- a/config/crd/bases/image.toolkit.fluxcd.io_imagerepositories.yaml +++ b/config/crd/bases/image.toolkit.fluxcd.io_imagerepositories.yaml @@ -301,7 +301,7 @@ spec: description: |- ObservedExclusionList is a list of observed exclusion list. It reflects the exclusion rules used for the observed scan result in - spec.lastScanResult. + status.lastScanResult. items: type: string type: array From 612fb1d30ca5c53659f343ff9d2c3965f4aa6e8d Mon Sep 17 00:00:00 2001 From: Socialpranker <273312799+Socialpranker@users.noreply.github.com> Date: Fri, 10 Jul 2026 18:01:32 +0200 Subject: [PATCH 2/2] docs: regenerate API reference after doc-comment fix make test flagged docs/api/v1/image-reflector.md as stale relative to the corrected ObservedExclusionList doc-comment. Signed-off-by: Socialpranker <273312799+Socialpranker@users.noreply.github.com> --- docs/api/v1/image-reflector.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/v1/image-reflector.md b/docs/api/v1/image-reflector.md index 89e1e390..f1620a33 100644 --- a/docs/api/v1/image-reflector.md +++ b/docs/api/v1/image-reflector.md @@ -1041,7 +1041,7 @@ ScanResult
ObservedExclusionList is a list of observed exclusion list. It reflects the exclusion rules used for the observed scan result in -spec.lastScanResult.
+status.lastScanResult.