-
Notifications
You must be signed in to change notification settings - Fork 0
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 Dot and Backet Notation in parameters #345
Comments
@tlawrie To find the associated TEP for Tekton |
@BenjaminRuby Can you provide some context on this from the platform's perspective? Tyson mentioned that supporting multiselect was a requested feature. @amhudson Can you assess the technical feasibility of supporting both for accessing parameters:
|
Hi @amhudson looking at the PR, I just want to make sure we have covered all the cases. References
Current State At the moment, the only time that new parameters could enter the system is in the YAML import of a task definition, or in the Results from a task when it outputs an array type (which we dont yet support either). although it would allow us to add support for multi-select in a Workflows Parameters. Character Support
Based on Specifying Parameters Parameter names:
However, that doesn't guarantee people didn't use bracket notation on a standard parameter name Entry Points What would happen if someone creates a task with parameter format reference of Do we have to store a new element on a
Parameters can be of the type String or Array This would allow support for multi-select creation in the UI too. @timrbula @BenjaminRuby (had a separate PR that's been on hold for this). Array support would mean we also have to handle Recommend: we cater for it by do in a separate issue as it has UI impact Results Pull Request We also have a PropertyManagerImpl which might be good to put all of this into? Not sure if thats internal vs external consumption I think we just have to make sure, that if we update the model to deal with all this, then we have to figure out |
Hey @amhudson have you been able to take a look at the above? |
yea, but I haven't been able to circle back to it. |
@tlawrie I have support for the following: workflow.params['my.param'] Which notation(s) am I missing and can you provide me an example of how it should appear? |
In Tekton 0.28.x and 0.29.y support was added for Parameters with
.
notation. tektoncd/pipeline#4215As well as using [] with both single and double quotes tektoncd/pipeline#4268
As part of this, we need to investigate whether we can support parameters with
.
notation. This would also then be good to have scopes back in our parameters (as well with any solutions extended Flow).We could then have System, Global, Team, etc prefixed / scoped parameters.
What changes would be needed in the service (and storage in the DB as
.
's do mess with mongo if not handled correctly) and also in the front end to allow entry of a dot.The text was updated successfully, but these errors were encountered: