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

Fix marshalling of patched objects. #445

Merged

Conversation

jbarrick-mesosphere
Copy link
Member

What type of PR is this?
/kind bug

What this PR does / why we need it:

If the JSON patch returned no annotations or no spec, then the JSON that was created would be invalid.

2019/06/27 17:06:46 Going to apply patch
{"metadata": {"annotations": }, "spec": {"clusterIP":null,"ports":[{"name":"client","port":6379,"targetPort":6379},{"name":"gossip","port":16379,"targetPort":16379}],"sessionAffinity":null}}

to object

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

If the JSON patch returned no annotations or no spec, then the JSON that was created would be invalid.

```
2019/06/27 17:06:46 Going to apply patch
{"metadata": {"annotations": }, "spec": {"clusterIP":null,"ports":[{"name":"client","port":6379,"targetPort":6379},{"name":"gossip","port":16379,"targetPort":16379}],"sessionAffinity":null}}

to object
```
Copy link
Member

@fabianbaier fabianbaier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jbarrick-mesosphere jbarrick-mesosphere merged commit f2f9ce4 into kudobuilder:master Jun 28, 2019
@jbarrick-mesosphere jbarrick-mesosphere deleted the fix-patch branch June 28, 2019 01:02
@jbarrick-mesosphere jbarrick-mesosphere added this to the v0.3.0 milestone Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants