Merge pull request #106242 from thockin/revive-copy-lb-status-type-to-ingress
Copy LoadBalancerStatus from core to networking
This commit is contained in:
@@ -596,7 +596,7 @@ var _ = common.SIGDescribe("Ingress API", func() {
|
||||
},
|
||||
},
|
||||
},
|
||||
Status: networkingv1.IngressStatus{LoadBalancer: v1.LoadBalancerStatus{}},
|
||||
Status: networkingv1.IngressStatus{LoadBalancer: networkingv1.IngressLoadBalancerStatus{}},
|
||||
}
|
||||
|
||||
ingress1 := ingTemplate.DeepCopy()
|
||||
@@ -741,8 +741,8 @@ var _ = common.SIGDescribe("Ingress API", func() {
|
||||
|
||||
// /status subresource operations
|
||||
ginkgo.By("patching /status")
|
||||
lbStatus := v1.LoadBalancerStatus{
|
||||
Ingress: []v1.LoadBalancerIngress{{IP: "169.1.1.1"}},
|
||||
lbStatus := networkingv1.IngressLoadBalancerStatus{
|
||||
Ingress: []networkingv1.IngressLoadBalancerIngress{{IP: "169.1.1.1"}},
|
||||
}
|
||||
lbStatusJSON, err := json.Marshal(lbStatus)
|
||||
framework.ExpectNoError(err)
|
||||
@@ -760,8 +760,8 @@ var _ = common.SIGDescribe("Ingress API", func() {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
statusToUpdate.Status.LoadBalancer = v1.LoadBalancerStatus{
|
||||
Ingress: []v1.LoadBalancerIngress{{IP: "169.1.1.2"}},
|
||||
statusToUpdate.Status.LoadBalancer = networkingv1.IngressLoadBalancerStatus{
|
||||
Ingress: []networkingv1.IngressLoadBalancerIngress{{IP: "169.1.1.2"}},
|
||||
}
|
||||
updatedStatus, err = ingClient.UpdateStatus(context.TODO(), statusToUpdate, metav1.UpdateOptions{})
|
||||
return err
|
||||
|
Reference in New Issue
Block a user