File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
21
21
22
22
"github.com/blake/external-mdns/resource"
23
23
"github.com/jpillora/go-tld"
24
- "k8s.io/api/extensions/v1beta1 "
24
+ v1 "k8s.io/api/networking/v1 "
25
25
"k8s.io/apimachinery/pkg/util/runtime"
26
26
"k8s.io/client-go/informers"
27
27
"k8s.io/client-go/tools/cache"
@@ -95,7 +95,7 @@ func (i *IngressSource) onUpdate(oldObj interface{}, newObj interface{}) {
95
95
func (i * IngressSource ) buildRecords (obj interface {}, action string ) ([]resource.Resource , error ) {
96
96
var records []resource.Resource
97
97
98
- ingress , ok := obj .(* v1beta1 .Ingress )
98
+ ingress , ok := obj .(* v1 .Ingress )
99
99
if ! ok {
100
100
return records , nil
101
101
}
@@ -147,7 +147,7 @@ func (i *IngressSource) buildRecords(obj interface{}, action string) ([]resource
147
147
148
148
// NewIngressWatcher creates an IngressSource
149
149
func NewIngressWatcher (factory informers.SharedInformerFactory , namespace string , notifyChan chan <- resource.Resource ) IngressSource {
150
- ingressInformer := factory .Extensions ().V1beta1 ().Ingresses ().Informer ()
150
+ ingressInformer := factory .Networking ().V1 ().Ingresses ().Informer ()
151
151
i := & IngressSource {
152
152
namespace : namespace ,
153
153
notifyChan : notifyChan ,
You can’t perform that action at this time.
0 commit comments