Skip to content

Commit

Permalink
Support timestamp result conversion
Browse files Browse the repository at this point in the history
From beta to alpha
  • Loading branch information
qu1queee committed Feb 13, 2024
1 parent 06cd598 commit 8228b6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/apis/build/v1beta1/buildrun_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}

Expand Down

0 comments on commit 8228b6f

Please sign in to comment.