mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Conversions missing from v1beta1
They were in v1beta2, not sure how they got removed.
This commit is contained in:
parent
dadb8431c4
commit
d9ad8cfac0
@ -196,6 +196,18 @@ func init() {
|
|||||||
out.PodIP = in.PodIP
|
out.PodIP = in.PodIP
|
||||||
return nil
|
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 {
|
||||||
|
if err := s.Convert(&in.Manifest, &out, 0); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
|
||||||
// Convert all to the new PodPhase constants
|
// Convert all to the new PodPhase constants
|
||||||
func(in *newer.PodPhase, out *PodStatus, s conversion.Scope) error {
|
func(in *newer.PodPhase, out *PodStatus, s conversion.Scope) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user