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

UPSTREAM: 23213: provide best effort generation even if types are asy… #8194

Closed
wants to merge 3 commits into from

Conversation

pweil-
Copy link
Contributor

@pweil- pweil- commented Mar 22, 2016

@pweil- pweil- mentioned this pull request Mar 22, 2016
85 tasks
@@ -6289,7 +6446,8 @@ func autoConvert_v1beta3_PodSpec_To_api_PodSpec(in *apiv1beta3.PodSpec, out *api
// in.HostIPC has no peer in out
// unable to generate simple pointer conversion for v1beta3.PodSecurityContext -> api.PodSecurityContext
if in.SecurityContext != nil {
if err := s.Convert(&in.SecurityContext, &out.SecurityContext, 0); err != nil {
out.SecurityContext = new(api.PodSecurityContext)
if err := apiv1beta3.Convert_v1beta3_PodSecurityContext_To_api_PodSecurityContext(in.SecurityContext, out.SecurityContext, s); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interesting, this was using reflection before which means the custom conversion wasn't even being called.

Copy link
Contributor

Choose a reason for hiding this comment

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

not true... reflection calls registered custom conversions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

TIL

@pweil-
Copy link
Contributor Author

pweil- commented Mar 22, 2016

[test]

@pweil-
Copy link
Contributor Author

pweil- commented Mar 23, 2016

re[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to c51582f

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/2459/)

@openshift-bot
Copy link
Contributor

Origin Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 28, 2016
@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jun 7, 2016
@danmcp
Copy link

danmcp commented Jun 14, 2016

@pweil- Bump

@pweil-
Copy link
Contributor Author

pweil- commented Jun 14, 2016

merged upstream but generation has been refactored since and we'll get the lastest in our rebase. Closing

@pweil- pweil- closed this Jun 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants