Skip to content

Commit

Permalink
Support Easegress ingress rewrite target (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxx7xxxx authored and localvar committed Jun 13, 2022
1 parent fc4762e commit da4ba22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/object/ingresscontroller/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ func (st *specTranslator) translateIngressRules(b *httpServerSpecBuilder, ingres
} else {
p.PathPrefix = path.Path
}

p.RewriteTarget = ingress.Annotations["easegress.ingress.kubernetes.io/rewrite-target"]

r.Paths = append(r.Paths, &p)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func (ic *IngressController) handleCert(event informer.Event, cert *spec.Certifi
ic.reloadTraffic()
return
}

func (ic *IngressController) handleServices(services map[string]*spec.Service) (continueWatch bool) {
continueWatch = true

Expand Down

0 comments on commit da4ba22

Please sign in to comment.