File tree 2 files changed +10
-0
lines changed
nginx-controller/controller
nginx-plus-controller/controller
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,11 @@ func (s *StoreToIngressLister) GetServiceIngress(svc *api.Service) (ings []exten
117
117
if ing .Namespace != svc .Namespace {
118
118
continue
119
119
}
120
+ if ing .Spec .Backend != nil {
121
+ if ing .Spec .Backend .ServiceName == svc .Name {
122
+ ings = append (ings , ing )
123
+ }
124
+ }
120
125
for _ , rules := range ing .Spec .Rules {
121
126
if rules .IngressRuleValue .HTTP == nil {
122
127
continue
Original file line number Diff line number Diff line change @@ -117,6 +117,11 @@ func (s *StoreToIngressLister) GetServiceIngress(svc *api.Service) (ings []exten
117
117
if ing .Namespace != svc .Namespace {
118
118
continue
119
119
}
120
+ if ing .Spec .Backend != nil {
121
+ if ing .Spec .Backend .ServiceName == svc .Name {
122
+ ings = append (ings , ing )
123
+ }
124
+ }
120
125
for _ , rules := range ing .Spec .Rules {
121
126
if rules .IngressRuleValue .HTTP == nil {
122
127
continue
You can’t perform that action at this time.
0 commit comments