From 259466ab1d1970496f1b71e7b3df366fe25ac36a Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Mon, 22 Jan 2024 15:58:24 +0100 Subject: [PATCH] fix: use correct items list struct for ClusterVulnerabilityReportList (#1793) Signed-off-by: Frank Jogeleit --- pkg/apis/aquasecurity/v1alpha1/vulnerability_types.go | 4 ++-- pkg/apis/aquasecurity/v1alpha1/zz_generated.deepcopy.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/apis/aquasecurity/v1alpha1/vulnerability_types.go b/pkg/apis/aquasecurity/v1alpha1/vulnerability_types.go index addb8cec2..701b12e0a 100644 --- a/pkg/apis/aquasecurity/v1alpha1/vulnerability_types.go +++ b/pkg/apis/aquasecurity/v1alpha1/vulnerability_types.go @@ -208,6 +208,6 @@ type ClusterVulnerabilityReportList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` - // Vulnerability is the spec for a vulnerability record. - Items []VulnerabilityReport `json:"items"` + // ClusterVulnerability is the spec for a cluster vulnerability record. + Items []ClusterVulnerabilityReport `json:"items"` } diff --git a/pkg/apis/aquasecurity/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/aquasecurity/v1alpha1/zz_generated.deepcopy.go index 452a6d1f7..9e4c9d9b2 100644 --- a/pkg/apis/aquasecurity/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/aquasecurity/v1alpha1/zz_generated.deepcopy.go @@ -431,7 +431,7 @@ func (in *ClusterVulnerabilityReportList) DeepCopyInto(out *ClusterVulnerability in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]VulnerabilityReport, len(*in)) + *out = make([]ClusterVulnerabilityReport, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) }