-
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] Support Dictionary in Params #4786
Conversation
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/assign @ywluogg |
The following is the coverage report on the affected files.
|
7f61593
to
8116469
Compare
The following is the coverage report on the affected files.
|
8116469
to
955f414
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
c8f6c2b
to
9f28404
Compare
The following is the coverage report on the affected files.
|
9f28404
to
dab9308
Compare
The following is the coverage report on the affected files.
|
dab9308
to
3a486ee
Compare
The following is the coverage report on the affected files.
|
/retest |
/test pull-tekton-pipeline-go-coverage |
The following is the coverage report on the affected files.
|
/test pull-tekton-pipeline-integration-tests |
37adff2
to
b1bfccf
Compare
The following is the coverage report on the affected files.
|
/test pull-tekton-pipeline-alpha-integration-tests |
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.
Thanks @chuangw6
Have a couple of minor comments around TODOs but otherwise LGTM!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dibyom, 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 |
Note: This new feature is gated by the alpha flag. Changes: - Add `properties` section in ParamSpec struct - Add `ObjectVal` in ArrayOrString struct - Implement UnmarshalJSON and MarshalJSON for ArrayOrString of object type. - Change SetDefault function to include object type - Add type validation for object type in task_validation.go - Add object param validation in validate_resources.go
b1bfccf
to
fc36bfb
Compare
The following is the coverage report on the affected files.
|
/lgtm All comments have been addressed |
I've updated the description to add a release-note block. |
Thanks @vdemeester !
Thanks! @pritidesai I'll keep in mind to include release note for new features added in future. |
Changes
/kind feature
This PR serves as an initial implementation of [TEP-0075] which is part of #4723 . Highlights:
Add dictionary type
properties
section inParamSpec
struct (key:string, val:PropertySpec
struct)ObjectVal
inArrayOrString
struct (needs to rename this struct in future pr)UnmarshalJSON
andMarshalJSON
forArrayOrString
ofobject
type.Mutating webhook (SetDefault)
ParamSpec
type ifproperties
section is providedParamSpec
type ifobjectVal
is provided in defaultPropertySpec
ifproperties
is provided andPropertySpec
's type field is not provided.Task/TaskRun level Validation
ParamSpec
Type validation (for object type)PropertySpec
Type validationproperties
is provided, required keys are provided etc.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