-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[TEP-0075] Validate task result variable of object type #4878
[TEP-0075] Validate task result variable of object type #4878
Conversation
5a4e833
to
9eb408b
Compare
/test tekton-pipeline-unit-tests |
9eb408b
to
e83b670
Compare
/test pull-tekton-pipeline-go-coverage |
e83b670
to
aacaa37
Compare
da753b0
to
032f28b
Compare
9aa60c1
to
f55b58e
Compare
/assign ywluogg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM except for another test case to be added
f55b58e
to
d16d410
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lbernick, ywluogg 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 |
Link this to #4723 |
This needs a release note. |
Prior to this commit, when providing param value with task result variable, it only allowed using the task result as whole in the format of `tasks.<taskName>.results.<resultName>` since result can be only of type string previously. As we are adding support for object type result, we need to support using the result variable of object type in the format of `tasks.<taskName>.results.<objectResultName>.<individualAttribute>`. In this commit, we consider the object case in the validation webhook.
d16d410
to
0facd8d
Compare
/lgtm |
/test tekton-pipeline-unit-tests |
/retest |
/kind feature |
Changes
Prior to this commit, when providing param value with task result
variable, it only allowed using the task result as whole in the format
of
tasks.<taskName>.results.<resultName>
since result canbe only of type string previously.
As we are adding support for object type result, we need to support
using the result variable of object type in the format of
tasks.<taskName>.results.<objectResultName>.<individualAttribute>
.In this commit, we consider the object case in the validation webhook.
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
(if there are no user facing changes, use release note "NONE")
Release Notes