-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Enable protobuf in Origin for server-to-server #9814
Enable protobuf in Origin for server-to-server #9814
Conversation
[test] |
9b88a33
to
ccef526
Compare
2152acf
to
7f04141
Compare
[test] On Tue, Jul 19, 2016 at 12:30 PM, OpenShift Bot [email protected]
|
[test] |
[test] On Tue, Jul 19, 2016 at 3:00 PM, OpenShift Bot [email protected]
|
[test] On Tue, Jul 19, 2016 at 3:21 PM, OpenShift Bot [email protected]
|
5d8d35e
to
ba54434
Compare
eba5cec
to
50ca5c9
Compare
3cdb26a
to
7360833
Compare
@deads2k @liggitt this is ready for review (or delegation to someone else). This is running all of our tests with protobuf enabled for both client and server - prior to merge I'll drop the "DO NOT MERGE" commit that forces it on for clients. I need to backport a few comments from c983121 from the other PR - it's easier to make the changes in here because I have better round tripping tests for both proto and json and it has the optional names changes. |
All but 28933 is merged upstream. |
Omg |
had to have been a flake, no way it succeeded :) |
panic(err) | ||
func (c *Template) EncodeNestedObjects(e runtime.Encoder) error { | ||
for i := range c.Objects { | ||
if err := extension.EncodeNestedRawExtension(runtime.UnstructuredJSONScheme, &c.Objects[i]); err != nil { |
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.
well this worked shockingly well.
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.
Sometimes I get things right.
Has already been removed in the next rebase.
…sion generation Currently it only skips if the fields don't match, but that leaves no way for callers to say "no really, ignore this field".
Forces templates to round-trip to JSON, not any other serialization.
Force PATH on update-generated-protobuf Run verify-generated-protobuf.sh during test-end-to-end We don't assume docker elsewhere, so for now we'll put it in this step and then move it later.
Handle more optional API fields
Allows conversions to be automatically generated, and the name is not externally visible.
9937762
to
4f81d31
Compare
[test] conformance docker fail
|
4f81d31
to
240c751
Compare
New clusters will get protobuf intracluster, old clusters will not.
240c751
to
92685ee
Compare
[test] secret mount failure |
Evaluated for origin test up to 92685ee |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6806/) |
Updated, PTAL
|
ExternalKubernetesClientConnectionOverrides *ClientConnectionOverrides | ||
} | ||
|
||
type ClientConnectionOverrides struct { |
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.
I don't really like this being all or nothing and we have to live with this config forever.
@liggitt do you object too or am I just being ornery?
lgtm [merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6806/) (Image: devenv-rhel7_4663) |
Evaluated for origin merge up to 92685ee |
This builds on top of the other protobuf PR and tests full protobuf throughout the stack (client -> server, server -> server). Also fixes some conversion inefficiencies in authorization (which is surprisingly slow).