From f24d89d71ed761593708a922d657e80edfa0c716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Moreno=20Garc=C3=ADa?= Date: Mon, 30 Sep 2024 11:04:20 +0200 Subject: [PATCH] feat(RELEASE-911): add field to store collectors results MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds a new field to store collectors results generated by the Collectors Pipeline. Signed-off-by: David Moreno GarcĂ­a --- api/v1alpha1/release_types.go | 5 +++++ api/v1alpha1/zz_generated.deepcopy.go | 5 +++++ config/crd/bases/appstudio.redhat.com_releases.yaml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/api/v1alpha1/release_types.go b/api/v1alpha1/release_types.go index 60f83c71..d5a28c45 100644 --- a/api/v1alpha1/release_types.go +++ b/api/v1alpha1/release_types.go @@ -63,6 +63,11 @@ type ReleaseStatus struct { // +optional Attribution AttributionInfo `json:"attribution,omitempty"` + // Collectors is an unstructured key used for storing all the collectors results generated by the Collectors Pipeline + // +kubebuilder:pruning:PreserveUnknownFields + // +optional + Collectors *runtime.RawExtension `json:"collectors,omitempty"` + // Conditions represent the latest available observations for the release // +optional Conditions []metav1.Condition `json:"conditions"` diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index ec2bbd57..c9026cc0 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -544,6 +544,11 @@ func (in *ReleaseStatus) DeepCopyInto(out *ReleaseStatus) { (*in).DeepCopyInto(*out) } out.Attribution = in.Attribution + if in.Collectors != nil { + in, out := &in.Collectors, &out.Collectors + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make([]v1.Condition, len(*in)) diff --git a/config/crd/bases/appstudio.redhat.com_releases.yaml b/config/crd/bases/appstudio.redhat.com_releases.yaml index 4aa36bc5..8343c04a 100644 --- a/config/crd/bases/appstudio.redhat.com_releases.yaml +++ b/config/crd/bases/appstudio.redhat.com_releases.yaml @@ -101,6 +101,11 @@ spec: description: Automated indicates whether the Release was created as part of an automated process or manually by an end-user type: boolean + collectors: + description: Collectors is an unstructured key used for storing all + the collectors results generated by the Collectors Pipeline + type: object + x-kubernetes-preserve-unknown-fields: true completionTime: description: CompletionTime is the time when a Release was completed format: date-time