-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix panic when upgrading configurations with patches #1971
Conversation
Signed-off-by: Cornelius Weig <[email protected]>
Unexported field access is fixed, however schema upgrade of configs with profile patches still fails:
The reason seems to be schema upgrade relies on json marshalling/unmarshalling. However, the |
yamlpatch.Node hides its implementation with unexported fields, which are not accessible for JSON serialization. Fix this serializing the struct to yaml and include that as an inline string in the json. Signed-off-by: Cornelius Weig <[email protected]>
Signed-off-by: Cornelius Weig <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1971 +/- ##
=========================================
+ Coverage 52.94% 53.04% +0.1%
=========================================
Files 183 183
Lines 7920 7942 +22
=========================================
+ Hits 4193 4213 +20
- Misses 3327 3328 +1
- Partials 400 401 +1
Continue to review full report at Codecov.
|
This PR fixes two problems:
yamlpatch.Node
did not behave as desired.Fix #1964