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

We should use github.com/golang/protobuf/jsonpb instead of golang json package. #154

Closed
Random-Liu opened this issue Oct 11, 2017 · 1 comment

Comments

@Random-Liu
Copy link
Contributor

Currently if a container exit with exit code 0, when we do crictl inspect, there won't be exit code field, because that is omitted https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/apis/cri/v1alpha1/runtime/api.pb.go#L2119.

We should use github.com/golang/protobuf/jsonpb, so that we could configure EmitDefaults to fix this.

@Random-Liu
Copy link
Contributor Author

I think this has been fixed. Close this one.

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

No branches or pull requests

1 participant