mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-05-04 22:26:11 +02:00
ingress source: update code for networkv1
This commit is contained in:
parent
115e2501af
commit
c823eba139
@ -219,13 +219,13 @@ func (sc *ingressSource) filterByAnnotations(ingresses []*networkv1.Ingress) ([]
|
||||
|
||||
// filterByIngressClass filters a list of ingresses based on a required ingress
|
||||
// class
|
||||
func (sc *ingressSource) filterByIngressClass(ingresses []*v1beta1.Ingress) ([]*v1beta1.Ingress, error) {
|
||||
func (sc *ingressSource) filterByIngressClass(ingresses []*networkv1.Ingress) ([]*networkv1.Ingress, error) {
|
||||
// if no class is specified then there's nothing to do
|
||||
if sc.ingressClassNameFilter == nil {
|
||||
return ingresses, nil
|
||||
}
|
||||
|
||||
filteredList := []*v1beta1.Ingress{}
|
||||
filteredList := []*networkv1.Ingress{}
|
||||
|
||||
for _, ingress := range ingresses {
|
||||
for _, nameFilter := range sc.ingressClassNameFilter {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user