Skip to content

Use preferred version when encoding nested objects #14865

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

Merged
merged 1 commit into from
Jun 26, 2017
Merged

Use preferred version when encoding nested objects #14865

merged 1 commit into from
Jun 26, 2017

Conversation

liggitt
Copy link
Contributor

@liggitt liggitt commented Jun 23, 2017

Fixes #14820

When we have a preferred version for encoding, make it available to nested object encoders

@liggitt
Copy link
Contributor Author

liggitt commented Jun 23, 2017

@enj @smarterclayton PTAL

@liggitt
Copy link
Contributor Author

liggitt commented Jun 23, 2017

[test]

@liggitt
Copy link
Contributor Author

liggitt commented Jun 23, 2017

manually tested with json and protobuf watches of grouped and ungrouped authorization API... thinking through the best way to test this generically

for posterity:

curl "https://localhost:8443/oapi/v1/clusterpolicies?watch=true" -k -H "Accept: application/vnd.kubernetes.protobuf"
curl "https://localhost:8443/oapi/v1/clusterpolicies?watch=true" -k -H "Accept: application/json"
curl "https://localhost:8443/apis/authorization.openshift.io/v1/clusterpolicies?watch=true" -k -H "Accept: application/vnd.kubernetes.protobuf"
curl "https://localhost:8443/apis/authorization.openshift.io/v1/clusterpolicies?watch=true" -k -H "Accept: application/json"

@enj
Copy link
Contributor

enj commented Jun 23, 2017

LGTM, look forward to the magical test required to prevent this...

@smarterclayton
Copy link
Contributor

LGTM. I think the encode version was added later than the DirectEncoder was created, possibly leading to this.

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 53bfdcc

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/2572/) (Base Commit: 9b2743f) (PR Branch Commit: 53bfdcc)

@enj
Copy link
Contributor

enj commented Jun 24, 2017

[merge][severity:blocker]

@enj
Copy link
Contributor

enj commented Jun 24, 2017

Flake #9309

@openshift openshift deleted a comment from openshift-bot Jun 26, 2017
@openshift openshift deleted a comment from openshift-bot Jun 26, 2017
@smarterclayton
Copy link
Contributor

TF?

[merge] you flearidden bot

@enj
Copy link
Contributor

enj commented Jun 26, 2017

I had it as a bug and edited it to blocker after I realized we were frozen.

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 53bfdcc

@openshift-bot
Copy link
Contributor

openshift-bot commented Jun 26, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1131/) (Base Commit: bb817e0) (PR Branch Commit: 53bfdcc) (Extended Tests: blocker) (Image: devenv-rhel7_6396)

@openshift-bot openshift-bot merged commit 1fb3ade into openshift:master Jun 26, 2017
@liggitt liggitt deleted the encode-internal branch June 27, 2017 13:54
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.

4 participants