@@ -35,7 +35,7 @@ type statusUpdater struct {
35
35
bigIPAddress string
36
36
bigIPPorts string
37
37
externalEndpoints []conf_v1.ExternalEndpoint
38
- status []api_v1. LoadBalancerIngress
38
+ status []networking. IngressLoadBalancerIngress
39
39
statusInitialized bool
40
40
keyFunc func (obj interface {}) (string , error )
41
41
namespacedInformers map [string ]* namespacedInformer
@@ -96,7 +96,7 @@ func (su *statusUpdater) UpdateExternalEndpointsForResource(r Resource) error {
96
96
97
97
// ClearIngressStatus clears the Ingress status.
98
98
func (su * statusUpdater ) ClearIngressStatus (ing networking.Ingress ) error {
99
- return su .updateIngressWithStatus (ing , []api_v1. LoadBalancerIngress {})
99
+ return su .updateIngressWithStatus (ing , []networking. IngressLoadBalancerIngress {})
100
100
}
101
101
102
102
// UpdateIngressStatus updates the status on the selected Ingress.
@@ -126,7 +126,7 @@ func (su *statusUpdater) getNamespacedInformer(ns string) *namespacedInformer {
126
126
}
127
127
128
128
// 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 {
130
130
// Get an up-to-date Ingress from the Store
131
131
key , err := su .keyFunc (& ing )
132
132
if err != nil {
@@ -212,12 +212,12 @@ func (su *statusUpdater) retryStatusUpdate(clientIngress typednetworking.Ingress
212
212
// saveStatus saves the string array of IPs or addresses that we will set as status
213
213
// on all the Ingresses that we manage.
214
214
func (su * statusUpdater ) saveStatus (ips []string ) {
215
- statusIngs := []api_v1. LoadBalancerIngress {}
215
+ statusIngs := []networking. IngressLoadBalancerIngress {}
216
216
for _ , ip := range ips {
217
217
if net .ParseIP (ip ) == nil {
218
- statusIngs = append (statusIngs , api_v1. LoadBalancerIngress {Hostname : ip })
218
+ statusIngs = append (statusIngs , networking. IngressLoadBalancerIngress {Hostname : ip })
219
219
} else {
220
- statusIngs = append (statusIngs , api_v1. LoadBalancerIngress {IP : ip })
220
+ statusIngs = append (statusIngs , networking. IngressLoadBalancerIngress {IP : ip })
221
221
}
222
222
}
223
223
su .status = statusIngs
@@ -664,7 +664,7 @@ func (su *statusUpdater) updateVirtualServerRouteExternalEndpoints(vsr *conf_v1.
664
664
return err
665
665
}
666
666
667
- func (su * statusUpdater ) generateExternalEndpointsFromStatus (status []api_v1. LoadBalancerIngress ) []conf_v1.ExternalEndpoint {
667
+ func (su * statusUpdater ) generateExternalEndpointsFromStatus (status []networking. IngressLoadBalancerIngress ) []conf_v1.ExternalEndpoint {
668
668
var externalEndpoints []conf_v1.ExternalEndpoint
669
669
for _ , lb := range status {
670
670
ports := su .externalServicePorts
0 commit comments