Skip to content

Commit

Permalink
feat(tibuild): support profile for tekton engine (#222)
Browse files Browse the repository at this point in the history
This pull request includes a small change to the
`tibuild/pkg/rest/service/cloud_event_client.go` file. The change adds a
new extension parameter to the cloud event for the `paramProfile` field.

*
[`tibuild/pkg/rest/service/cloud_event_client.go`](diffhunk://#diff-12f7cc6dce0ce0b270c4b652690b1d70621d252829df2db7ec36fa48691714b6R81):
Added `paramProfile` extension to the cloud event in the
`newDevBuildCloudEvent` function.

Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo authored Jan 24, 2025
1 parent 69b4764 commit 8a17a7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tibuild/pkg/rest/service/cloud_event_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func newDevBuildCloudEvent(dev DevBuild) (*cloudevents.Event, error) {
event.SetSubject(fmt.Sprint(dev.ID))
event.SetSource("tibuild.pingcap.net/api/devbuilds/" + fmt.Sprint(dev.ID))
event.SetExtension("user", dev.Meta.CreatedBy)
event.SetExtension("paramProfile", dev.Spec.Edition)
if dev.Spec.BuilderImg != "" {
event.SetExtension("paramBuilderImage", dev.Spec.BuilderImg)
}
Expand Down

0 comments on commit 8a17a7b

Please sign in to comment.