-
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
Support for single-quote bracket notation for params #4268
Support for single-quote bracket notation for params #4268
Conversation
/kind feature |
thanks @skaegi for implementing this feature, I have left a comment to add one unit test and will be great if you can update the proposal with the bracket notation: Proposal has: steps:
- image: $(params[dev.mattmoor.foo]) Correct it to use bracket notation with double quotes: steps:
- image: $(params["dev.mattmoor.foo"]) And bracket notation with single quotes: steps:
- image: $(params['dev.mattmoor.foo']) /approve |
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.
/test pull-tekton-pipeline-alpha-integration-tests |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pritidesai, 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 |
thanks @vdemeester for approving, changing my approval to lgtm 🙏 /lgtm |
thanks @skaegi /lgtm |
This change adds single-quote bracket notation to the work done in #4215. This is consistent with how referencing is done elsewhere 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 is based on TEP: tektoncd/community#503 -- which also needs to be aligned with the two bracket notation approaches in the implementation. See tektoncd/community#527
Changes
This change adds single-quote bracket param matching to the params and param results analagous with the double-quote bracket param matching. It also adds similar test cases and updates the doc with the single-quote syntax.
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes