Skip to content
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

EVEREST-1672 | Unmarshalling proto response should discard unknown fields #844

Merged
merged 5 commits into from
Nov 19, 2024

Conversation

mayankshah1607
Copy link
Member

New fields may be added to the VS API response message. Since Everest is compiled and shipped with a specific version of the VS package, when new fields are added to the response, it leads to error which causes upgrades to stop working.

By setting DiscardUnknown=true in the Unmarshal options, it ignores unknown fields

@mayankshah1607 mayankshah1607 marked this pull request as ready for review November 19, 2024 06:27
@mayankshah1607 mayankshah1607 requested a review from a team as a code owner November 19, 2024 06:27
Signed-off-by: Mayank Shah <[email protected]>
@mayankshah1607 mayankshah1607 enabled auto-merge (squash) November 19, 2024 10:41
@mayankshah1607 mayankshah1607 merged commit bad1674 into main Nov 19, 2024
9 checks passed
@mayankshah1607 mayankshah1607 deleted the EVEREST-1672 branch November 19, 2024 10:56
mayankshah1607 added a commit that referenced this pull request Nov 19, 2024
…elds (#844)

* fix Unmarshal

Signed-off-by: Mayank Shah <[email protected]>

* linting

Signed-off-by: Mayank Shah <[email protected]>

---------

Signed-off-by: Mayank Shah <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants