Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHIP-0003: Tekton Custom Task #9

Closed
wants to merge 1 commit into from

Conversation

imjasonh
Copy link
Contributor

@imjasonh imjasonh commented Jun 3, 2021

@openshift-ci openshift-ci bot requested review from adambkaplan and qu1queee June 3, 2021 13:59
Copy link
Member

@adambkaplan adambkaplan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

This is a good provisional proposal. My comments are meant for general discussion or items to consider when we get to the implementable phase.

ships/0003-tekton-custom-task.md Show resolved Hide resolved
ships/0003-tekton-custom-task.md Show resolved Hide resolved
ships/0003-tekton-custom-task.md Show resolved Hide resolved
ships/0003-tekton-custom-task.md Show resolved Hide resolved
@openshift-ci
Copy link

openshift-ci bot commented Jun 3, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adambkaplan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 3, 2021
Copy link
Member

@sbose78 sbose78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, would be nice to have a sample tekton pipeline yaml included in the proposal. :)

ships/0003-tekton-custom-task.md Show resolved Hide resolved
ships/0003-tekton-custom-task.md Show resolved Hide resolved
ships/0003-tekton-custom-task.md Show resolved Hide resolved
Copy link
Member

@SaschaSchwarze0 SaschaSchwarze0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to make sure we make this feature meet the user's use cases. So, from a user's perspective, one might be missing certain features to integrate a Run which is a BuildRun into a larger Tekton pipeline:

  • passing the source through a Tekton workspace; or at least overwriting the source (like the revision) of the build through the Pipeline
  • getting insights into the image that was built (the image sha or the full image URL)

All these things require features in the build controller, but for the e2e story = to build a reasonable Tekton pipeline that does something useful, I think it will be necessary to speak out these things already.

Copy link
Contributor

@qu1queee qu1queee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@imjasonh sorry for the late reply in here. I would like this SHP to consider more aspects around the integration for:

  • Tekton Triggers
  • An embedded SHP in Tekton Pipeline resources

I do not have the whole picture yet clear, but I wrote some key points we might wanna consider, see delta. I can open a proper PR to yours if you want, or you can consume some of the ideas I wrote there. Let me know.

@imjasonh
Copy link
Contributor Author

Hi @qu1queee @SaschaSchwarze0 sorry for the very late reply. 😓

I agree there's probably more design work to be done to think through how this integrates with a Tekton Pipeline, especially the areas you've highlighted around reusing Tekton's workspaces, and emitting results to downstream Tasks. I believe with changes like #13 we can have the Custom Task controller adapt Shipwright Build .status.results (incl git SHA and image SHA) to Tekton .status.results, and with the evolving work around sources we can find some way to adapt workspaces to an input source.

Ultimately this is a provisional SHIP, so I don't think we need to answer all of these questions definitively before merging it. We can layer on more design considerations and features before it becomes implementable.

@adambkaplan
Copy link
Member

@imjasonh since we merged the previous enhancement proposals here, please update the title and numbering to SHIP-0020

@qu1queee
Copy link
Contributor

qu1queee commented Aug 1, 2021

@imjasonh moving out of this PR as I would not be able to provide feedback in the next weeks. @SaschaSchwarze0 fyi.

@SaschaSchwarze0
Copy link
Member

We are closing the SHIP as it is being included in https://github.com/shipwright-io/community/blob/main/ships/0031-shipwright-trigger.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants