From 8228b6feb5feb8ab191b511da6c5220107195a0b Mon Sep 17 00:00:00 2001 From: encalada Date: Tue, 13 Feb 2024 14:22:56 +0100 Subject: [PATCH] Support timestamp result conversion From beta to alpha --- pkg/apis/build/v1beta1/buildrun_conversion.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/apis/build/v1beta1/buildrun_conversion.go b/pkg/apis/build/v1beta1/buildrun_conversion.go index a7159cfea9..6690b2dfd9 100644 --- a/pkg/apis/build/v1beta1/buildrun_conversion.go +++ b/pkg/apis/build/v1beta1/buildrun_conversion.go @@ -126,6 +126,11 @@ func (src *BuildRun) ConvertTo(ctx context.Context, obj *unstructured.Unstructur Bundle: (*v1alpha1.BundleSourceResult)(src.Status.Source.OciArtifact), }) } + if src.Status.Source != nil && src.Status.Source.Timestamp != nil { + if len(sourceStatus) > 0 { + sourceStatus[0].Timestamp = src.Status.Source.Timestamp + } + } conditions := []v1alpha1.Condition{}