improve pipeline support for function-cidr#33
Conversation
453fe07 to
7457124
Compare
|
Do you need the backslashes in. apis/composition-pipeline-context.yaml here: |
|
When running Please take a look. |
|
The description of the changes includes: ... add consistent field support for cidrFunc (this is a breaking change, but used for consistency reasons: use cidrFuncField instead of cidrFunc now) What is the breaking change and why should not both |
|
Please add test coverage in |
|
Was the |
|
Please run all yaml files through yamlfmt (https://formulae.brew.sh/formula/yamlfmt if you are using Mac OSX) to update the indentation of arrays or manually update, e.g. versus: |
|
In the comment in input/v1beta1/parameters.go, please replace with |
7457124 to
c8360f0
Compare
They are needed because it's a key with dots in the name (
This is fixed now. Thanks for noticing.
There was no
The files are formatted with
Fixed the comments. There was a second spelling mistake (cidrnetmast).
Looks like the project does not have any tests so far. What would you like me to do? Wouldn't it be easier if you add the comments directly on the code instead of different comments here? Makes it a bit hard to give replies to individual comments. |
|
@anessi sorry for late Response - can you rebase your PR? |
|
and please Check we merged a few PRs recently |
….composite.resource., .desired.resources. or context.)
c8360f0 to
35e0d8d
Compare
Description of your changes
Motivation: the current code does not allow to use multiple function calls in a pipeline, because it only allows to read from
observed.composite.resourceproperties. In pipelines we need to be able to read values from other fields and use them as input value (e.g.prefix).This PR implements these main changes:
desired.composite.resource.,observed.composite.resource.orcontext)cidrFunc(this is a breaking change, but used for consistency reasons: usecidrFuncFieldinstead ofcidrFuncnow)Please see the added example pipeline for a concrete example how I use the function of the use-case.
Fixes #32
The updated function is available for testing as:
Please note that I'm not a GO developer, so review the code carefully as I might have missed some obvious things 😃
I have: