-
Notifications
You must be signed in to change notification settings - Fork 702
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong Helm values reported on Update form (#3621) #3898
Conversation
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Remember to set it to ready for review once you're ready (I'll assume if a PR is draft that you don't yet want people to review it, unless explicitly asked). |
The implemented approach in this PR is not the best one, but the quickest. |
Yep, happy to take a look... all I meant with my comment above was that you've got the PR in a Draft state, which usually means you don't want people to look at it yet. Note that the dashboard tests are failing with a related error, so it's not clear to me yet whether that means the change here isn't working or is but tests haven't been updated |
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.
Once the tests are passing, +1 . At first I thought that the failing tests were related to the test changes you made here, but I see that the test changes here are just to ensure the result for comparison can contain double-quotes... great. So the failing tests are just other examples where values come back double-quoted (and I assume just need updating to match).
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque rcastelblanq@vmware.com
Description of the change
This PR tackles issue #3621 with one of the possible approaches.
Problem is caused by the way Kubeapps serializes/deserializes the modified values.
Just by having a question mark
?
in a value without quotes makes the process to fail.yaml
module removes double quotes when performingdoc.toString()
Possible workarounds
yaml
module to double quote any modified node in yaml withYAML.scalarOptions.str.defaultType = Type.QUOTE_DOUBLE;
. However, this is a global setting and double quotes both key and value (see this PR tests). I don't think this is a nice and clean solution 馃槃 , as every everyt modified node shows double quoted.js-yaml
module instead ofyaml
. -> It doesn't work due to Yaml comments being erasedyaml
module to major version "2.x" could make it. This major release contains differentiated settings for double quoting keys or values. But after trying the upgrade, dashboard breaks. This could be the most effective solution, as we could double quote only values and not keys. It requires a major upgrade to the module that could bring unforeseen effects in other parts of the app.Workaround 1 is included in this PR.
Benefits
This PR is just for discussion by now. No real benefit so far.
Possible drawbacks
To be discussed.
Applicable issues
Additional information