@@ -35,7 +35,7 @@ type statusUpdater struct {
3535 bigIPAddress string
3636 bigIPPorts string
3737 externalEndpoints []conf_v1.ExternalEndpoint
38- status []api_v1. LoadBalancerIngress
38+ status []networking. IngressLoadBalancerIngress
3939 statusInitialized bool
4040 keyFunc func (obj interface {}) (string , error )
4141 namespacedInformers map [string ]* namespacedInformer
@@ -96,7 +96,7 @@ func (su *statusUpdater) UpdateExternalEndpointsForResource(r Resource) error {
9696
9797// ClearIngressStatus clears the Ingress status.
9898func (su * statusUpdater ) ClearIngressStatus (ing networking.Ingress ) error {
99- return su .updateIngressWithStatus (ing , []api_v1. LoadBalancerIngress {})
99+ return su .updateIngressWithStatus (ing , []networking. IngressLoadBalancerIngress {})
100100}
101101
102102// UpdateIngressStatus updates the status on the selected Ingress.
@@ -126,7 +126,7 @@ func (su *statusUpdater) getNamespacedInformer(ns string) *namespacedInformer {
126126}
127127
128128// updateIngressWithStatus sets the provided status on the selected Ingress.
129- func (su * statusUpdater ) updateIngressWithStatus (ing networking.Ingress , status []api_v1. LoadBalancerIngress ) error {
129+ func (su * statusUpdater ) updateIngressWithStatus (ing networking.Ingress , status []networking. IngressLoadBalancerIngress ) error {
130130 // Get an up-to-date Ingress from the Store
131131 key , err := su .keyFunc (& ing )
132132 if err != nil {
@@ -212,12 +212,12 @@ func (su *statusUpdater) retryStatusUpdate(clientIngress typednetworking.Ingress
212212// saveStatus saves the string array of IPs or addresses that we will set as status
213213// on all the Ingresses that we manage.
214214func (su * statusUpdater ) saveStatus (ips []string ) {
215- statusIngs := []api_v1. LoadBalancerIngress {}
215+ statusIngs := []networking. IngressLoadBalancerIngress {}
216216 for _ , ip := range ips {
217217 if net .ParseIP (ip ) == nil {
218- statusIngs = append (statusIngs , api_v1. LoadBalancerIngress {Hostname : ip })
218+ statusIngs = append (statusIngs , networking. IngressLoadBalancerIngress {Hostname : ip })
219219 } else {
220- statusIngs = append (statusIngs , api_v1. LoadBalancerIngress {IP : ip })
220+ statusIngs = append (statusIngs , networking. IngressLoadBalancerIngress {IP : ip })
221221 }
222222 }
223223 su .status = statusIngs
@@ -664,7 +664,7 @@ func (su *statusUpdater) updateVirtualServerRouteExternalEndpoints(vsr *conf_v1.
664664 return err
665665}
666666
667- func (su * statusUpdater ) generateExternalEndpointsFromStatus (status []api_v1. LoadBalancerIngress ) []conf_v1.ExternalEndpoint {
667+ func (su * statusUpdater ) generateExternalEndpointsFromStatus (status []networking. IngressLoadBalancerIngress ) []conf_v1.ExternalEndpoint {
668668 var externalEndpoints []conf_v1.ExternalEndpoint
669669 for _ , lb := range status {
670670 ports := su .externalServicePorts
0 commit comments