-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
feat: Make spec.source.helm.values field accepts either a string or a rawExtension #8794
feat: Make spec.source.helm.values field accepts either a string or a rawExtension #8794
Conversation
0ab763c
to
a8d18af
Compare
I will fix the tests |
Fixes: #2936 |
@mcbenjemaa thanks for your persistence on this! I want to make sure I have enough time to give this a solid review, so bear with me as I try to carve out the time. |
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.
Just tested this locally, and things seem to behave quite nicely! We could probably use an e2e test or two.
My questions might have been silly. Mostly stuff that surprised me / I was curious about, not necessarily anything wrong!
ui/src/app/applications/components/application-parameters/application-parameters.tsx
Outdated
Show resolved
Hide resolved
ui/src/app/applications/components/application-parameters/application-parameters.tsx
Outdated
Show resolved
Hide resolved
dd329e5
to
6e4f706
Compare
Codecov Report
@@ Coverage Diff @@
## master #8794 +/- ##
==========================================
- Coverage 44.96% 44.82% -0.14%
==========================================
Files 212 213 +1
Lines 25261 25318 +57
==========================================
- Hits 11359 11350 -9
- Misses 12295 12363 +68
+ Partials 1607 1605 -2
Continue to review full report at Codecov.
|
78a2375
to
9ad1808
Compare
Strange! Why this test is failing |
@mcbenjemaa oh, there was a dependency in docs/requirements.txt that needed to be pinned. If you merge master, it should work. :-) |
Hey, @mcbenjemaa, how's this going? Anything I can do to help? |
9ad1808
to
22734f7
Compare
I have rebased it with master! |
@mcbenjemaa could you run |
22734f7
to
e1756fb
Compare
e1756fb
to
5f5ba9d
Compare
I don't know Why
|
5f5ba9d
to
bd90ede
Compare
@crenshaw-dev Can you restart the test ?
|
I don't think I have permissions to rerun tests. @alexmt can you kick it off again? Alternatively @mcbenjemaa, you could push an empty commit. |
Just rebasing it. |
Signed-off-by: Mohamed Chiheb <mc.benjemaa@gmail.com>
Signed-off-by: Mohamed Chiheb <mc.benjemaa@gmail.com>
…g or object Signed-off-by: Mohamed Chiheb <mc.benjemaa@gmail.com>
Signed-off-by: Mohamed Chiheb <mc.benjemaa@gmail.com>
Signed-off-by: Mohamed Chiheb <mc.benjemaa@gmail.com>
Signed-off-by: Mohamed Chiheb <mc.benjemaa@gmail.com>
Signed-off-by: Mohamed Chiheb <mc.benjemaa@gmail.com>
Signed-off-by: Mohamed Chiheb <mohamed.chiheb-extern@renault.com>
…e2e that sets values as raw via this flag Signed-off-by: Mohamed Chiheb <mc.benjemaa@gmail.com> Signed-off-by: Mohamed Chiheb <mohamed.chiheb-extern@renault.com> Signed-off-by: Mohamed Chiheb <mc.benjemaa@gmail.com>
bd90ede
to
f201dc1
Compare
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.
Alrighty. I'm super excited about this PR. It's been a marathon, thanks for all your work @mcbenjemaa! I want to do a line-by-line review of this PR and do some manual testing. So please be patient with any comments that come up. But this is really good code, I'm excited to get it merged.
@@ -632,7 +633,7 @@ func NewApplicationUnsetCommand(clientOpts *argocdclient.ClientOptions) *cobra.C | |||
} | |||
} | |||
if app.Spec.Source.Helm != nil { | |||
if len(parameters) == 0 && len(valuesFiles) == 0 && !valuesLiteral && !ignoreMissingValueFiles { | |||
if len(parameters) == 0 && len(valuesFiles) == 0 && !valuesLiteral && !valuesRawLiteral && !ignoreMissingValueFiles { |
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.
if len(opts.values) > 0 { | ||
src.Helm.Values = opts.values | ||
src.Helm.Values.Values = opts.values | ||
} | ||
if len(opts.valuesRaw) > 0 { |
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.
What happens if someone specifies both? Should we throw an error if they try?
@mcbenjemaa lmk if I can do anything to help with this! |
@mcbenjemaa closing this in favor of #9079, where I'll try to get it across the finish line. Thanks so much again for all your work on this! |
Test using this demo repo: https://github.com/mcbenjemaa/argocd-apps
Fixes: #2936
Enhancement Proposal Ref: #8579
Thanks @crenshaw-dev for guidance.
CC @alexec
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: