-
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
Allow .
in param/result names via subscript.
#4215
Allow .
in param/result names via subscript.
#4215
Conversation
I'm sure there are some docs changes needed for this, although I'm not sure where those docs are, so if folks could provide pointers to any docs they think should be updated to reflect this change I'd appreciate it 🙏 /kind feature |
The following is the coverage report on the affected files.
|
I'm going to try and expand this with e2e test coverage as well, so not checking the test box yet. |
This change allow folks to use `.` in parameter names (e.g. `dev.mattmoor.my-param`), and reference them via the subscript operator (e.g. `params["dev.mattmoor.my-param"]`) to avoid ambiguity introduced by the mixing of `.`s. TEP: tektoncd/community#503
d5a7d16
to
3ab7f06
Compare
The following is the coverage report on the affected files.
|
Only failure seems to be outside of what I've modified, so let's see if it repro's. /retest |
I think |
The following is the coverage report on the affected files.
|
Ok, I updated For the commit message, I've left this unchecked as I am somewhat reluctant to fork the TEP PR as the source of truth (esp. before it is merged), but if folks have a good example, I'd be happy to circle back and update things to follow a strong precedent. |
/unhold The TEP has merged |
/hold cancel |
Either way, thanks! |
Really old version it is 😉 😛 😅 |
/lgtm nice! |
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.
/hold
/cc @afrittoli @bobcatfish
// FIXME(vdemeester) Remove that with deprecating v1beta1 | ||
"inputs.params.%s", |
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.
Did I wrote that FIXME ? I think I meant "with deprecating v1alpha1", maybe ? 🤔 👴🏼
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.
Yeah, I just moved it 😁
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.
yeah.. I saw that 😝 I am confused by my own comment 😹 damn…
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester 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 |
(holding just a day or two or less to allow core team to review 👼🏼 ) |
Are we still waiting on anything here? |
@dlorenc let's validate this in the upcoming API WG (today) 👼🏼 |
@vdemeester Just seeing this, but don't think it was discussed... 😅 |
That's a good point 😅 |
Just popped open my pending PR list and saw this (I'd forgotten about it 🤣 ), should we |
/hold cancel |
Late to the party but I'm excited to see this going in! Next release is gonna be a good one :D |
That being said, one more process nit: technically the TEP should be "implementable" before the implementation gets merged (another opportunity for some automation to enforce?) - I added a comment to the TEP pr also https://github.com/tektoncd/community/pull/503/files#r709442151 |
I'm curious if there are examples of TEPs that have been merged as "proposed" and never been made "implementable"? I'm sort of curious why this extra hop is in there, and whether it's been useful historically? Happy to discuss elsewhere as this is sort of an odd place to have that discussion 🤣 |
@mattmoor wouldn't be surprised - the process is documented at https://github.com/tektoncd/community/blob/main/teps/0001-tekton-enhancement-proposal-process.md#tep-workflow - looking at some of the history there might help; a great place to discuss changes would be the API working group and/or an issue/pr over there |
I know this PR is merged already, but I think it would make a lot of sense to support single quotes in addition to double quotes. This both matches how Kubernetes references info with the downwards api and also how bracket notation is typically used. In terms of implementation I think this is just a matter of adding |
This change adds single-quote bracket notation to the work done in #4215. This is consistent with how referencing is done else in K8s in the downwards api. The original patch used the name subscript notation to describe this however the standard name for this approach is bracket notation and updates the doc accordingly.
This change adds single-quote bracket notation to the work done in tektoncd#4215. This is consistent with how referencing is done else in K8s in the downwards api. The original patch used the name subscript notation to describe this however the standard name for this approach is bracket notation and updates the doc accordingly.
This change allow folks to use
.
in parameter names (e.g.dev.mattmoor.my-param
), and reference them via the subscript operator (e.g.params["dev.mattmoor.my-param"]
) to avoid ambiguity introduced by the mixing of.
s.TEP: tektoncd/community#503
/kind enhancement
/hold
Holding until the TEP is merged.
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes