-
Notifications
You must be signed in to change notification settings - Fork 121
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
feat(pipelineloop) : Support latest tektoncd pipeline version. #602
feat(pipelineloop) : Support latest tektoncd pipeline version. #602
Conversation
tested with the included examples i.e. |
cc @Tomcli |
thanks @ScrapCodes, can you update the readme saying that to use the /cc @pugangxa @jinchihe we are updating the pipelineloop reconcile logic to handle the new custom task spec from tektoncd/pipeline#3901 |
Thanks @ScrapCodes @Tomcli , Great to saw the PR for tekton merged. Took a look at the PR and generally it's fine. Just some questions:
|
Embedded custom resource is not created in etcd at any point in time. |
#512 is only for custom resources that need self reference. E.g. pipeline loops for recursion only
Yes, we will need to update the API and SDK to support this new syntax later on. Our goal is to have them based on the Tekton v0.25 release, but we will have some experimental code using the Tekton master branch as the meantime.
As @ScrapCodes mentioned, the new embedded custom task won't be a separate pipelineloop CR because the pipelineloop controller can get the pipelineloop spec from Tekton Here is the high level diagram, we are not introducing the validation webhook on the embedded spec yet. |
Yeah, it's reasonable to do it only for recursion.
Got it. So I think we can make it a standard way but still need generate new CR for recursion, but yes the logic can all be done in DSL which is more friendly to users.
Thanks for the information, from the diagram user will get the response once the pipelinerun created successfully no matter the Run CR creation status? I think we need enhance it later. |
@pugangxa Yes right now the Run CR just created without any validation. From the TEP 61, the recommended feedback is to have some kind of async validation from the custom controller. So the not all the RUN CRs will be pending when one of the custom task validation webhooks is failing. Let me open another issue to track these enhancement. To enhance the pipelineloop with embedded spec, we need
|
/lgtm |
@pugangxa any last minute comment before I merge it? |
Thanks Tommy, no more comments from my side. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ScrapCodes, Tomcli 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 |
Which issue is resolved by this Pull Request:
Resolves #
Description of your changes:
Updated to latest tektoncd version.
go mod tidy
and passed all tests.
Environment tested:
python --version
):tkn version
):kubectl version
):/etc/os-release
):Checklist:
Do you want this pull request (PR) cherry-picked into the current release branch?
Learn more about cherry-picking updates into the release branch.