Skip to content

Commit

Permalink
Merge pull request #278 from pleshakov/fix-mergeable-ingresses
Browse files Browse the repository at this point in the history
Fix mergeable Ingress types
  • Loading branch information
pleshakov authored Apr 30, 2018
2 parents 9b6a367 + 9735a2c commit 49ddc53
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions nginx-controller/nginx/configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,15 @@ func (cnf *Configurator) generateNginxCfg(ingEx *IngressEx, pems map[string]stri
rootLocation := false

grpcOnly := true
for _, path := range rule.HTTP.Paths {
if _, exists := grpcServices[path.Backend.ServiceName]; !exists {
grpcOnly = false
break
if len(grpcServices) > 0 {
for _, path := range rule.HTTP.Paths {
if _, exists := grpcServices[path.Backend.ServiceName]; !exists {
grpcOnly = false
break
}
}
} else {
grpcOnly = false
}

for _, path := range rule.HTTP.Paths {
Expand Down

0 comments on commit 49ddc53

Please sign in to comment.