-
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
UPSTREAM: 23213: provide best effort generation even if types are asy… #8194
Conversation
@@ -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 { |
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.
Interesting, this was using reflection before which means the custom conversion wasn't even being called.
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.
not true... reflection calls registered custom conversions
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.
TIL
[test] |
re[test] |
Evaluated for origin test up to c51582f |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/2459/) |
Origin Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again |
@pweil- Bump |
merged upstream but generation has been refactored since and we'll get the lastest in our rebase. Closing |
…mmetrical
kubernetes/kubernetes#23213