mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Add conversions for CreateExternalLoadBalancer for v1beta1 and v1beta2
This commit is contained in:
parent
19c0d82edc
commit
ada6882373
@ -794,6 +794,7 @@ func addConversionFuncs() {
|
||||
if err := s.Convert(&in.Spec.Type, &out.Type, 0); err != nil {
|
||||
return err
|
||||
}
|
||||
out.CreateExternalLoadBalancer = in.Spec.Type == api.ServiceTypeLoadBalancer
|
||||
|
||||
return nil
|
||||
},
|
||||
|
@ -716,6 +716,7 @@ func addConversionFuncs() {
|
||||
if err := s.Convert(&in.Spec.Type, &out.Type, 0); err != nil {
|
||||
return err
|
||||
}
|
||||
out.CreateExternalLoadBalancer = in.Spec.Type == api.ServiceTypeLoadBalancer
|
||||
|
||||
return nil
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user