-
Notifications
You must be signed in to change notification settings - Fork 45
first iteration - deepcopy #131
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
Conversation
@davidesalerno can you please review as well? |
It is a work in progress pull request, I've pushed to collect feedback. |
@lsytj0413, I believe the @spolti, let's try to keep the generated code in |
Yep,in some scenario we can replace interface{} with concrete type(such as IntOrString),but this cannot valid with workflow.States field(the element of States field can be one of |
I believe that we can work that out with well-defined types. I'll wait for this one to be done to release the new version. |
I am currently trying to add the new Type as suggested, IntOrObject (based on the same approach from k8s apimachinery used for IntOrString).
|
095c2c1
to
50d85e1
Compare
Hi guys, please refer to my last commit, I got something "workable", I've added the IntOrObject custom object that allow us to have basically a object of any kind (for now, This first proposal exemplifies two possible ways to implement it: First, have
and the second option will be having only the ObjVal field, producing something like:
With both approach we can parse the following (tested only with arguments for now):
Can be check in the failing test, the output would be:
|
Seems fine, but can you take a look at the CI faiulres? |
CI is failing on purpose, so you guys can take a look on the diference between the previous and the proposed version of the custom object. |
about sonatype-lift, it is complaining about the deepCopy generated file, asked it to be ignored already, hopefully it will be green once it runs again. |
let's wait for @lsytj0413 feedback. We can set a milestone next Monday and go ahead with the changes to the other structures. |
@ricardozanini about the option, what option do you think better? |
@lsytj0413 before review, please see this comment and share your thoughts on the best option based on the outputs. |
7ec2619
to
704e036
Compare
4e5a2ee
to
3777a19
Compare
Go ahead and implementing a specific type for each use case. |
bd9c4ac
to
67b3a72
Compare
Signed-off-by: spolti <[email protected]>
Signed-off-by: spolti <[email protected]>
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.
It's fine if you want to provide the latest comment from my review in a new PR.
Signed-off-by: spolti <[email protected]>
@lsytj0413 wanna take a final look? I'm willing to merge this one to finally release 0.8. |
Signed-off-by: spolti [email protected]
Fixes #99
Many thanks for submitting your Pull Request ❤️!
What this PR does / why we need it:
Special notes for reviewers:
Additional information (if needed):