-
Notifications
You must be signed in to change notification settings - Fork 38.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
More small refactors for v1beta3 -> internal #2912
Changes from all commits
1f442d4
787b5c4
dadb843
d9ad8cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,6 +196,18 @@ func init() { | |
out.PodIP = in.PodIP | ||
return nil | ||
}, | ||
func(in *newer.PodSpec, out *PodState, s conversion.Scope) error { | ||
if err := s.Convert(&in, &out.Manifest, 0); err != nil { | ||
return err | ||
} | ||
return nil | ||
}, | ||
func(in *PodState, out *newer.PodSpec, s conversion.Scope) error { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Legacy- that's v1beta1 and 2
|
||
if err := s.Convert(&in.Manifest, &out, 0); err != nil { | ||
return err | ||
} | ||
return nil | ||
}, | ||
|
||
// Convert all to the new PodPhase constants | ||
func(in *newer.PodPhase, out *PodStatus, s conversion.Scope) error { | ||
|
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.
Shouldn't this be PodStatus rather than PodSpec?