Skip to content

Commit

Permalink
Update Go docs for path-regex (#4248)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjngx authored Aug 16, 2023
1 parent da221ce commit 63f7f2f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/configs/version1/template_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ func trim(s string) string {
// if no path-regex annotation is present in ingressAnnotations
// or in Location's Ingress.
//
// Annotation 'path-regex' set on a Minion Ingress will take priority over
// the annotation set on the master (in Master-Minion Ingress setup).
// If no annotation 'path-regex' is set on Minion and only on Ingress (including master),
// all location paths will be updated using provided regex modifier types.
// Annotations 'path-regex' are set only on Minions. If set on Master Ingress,
// they are ignored and have no effect.
func makeLocationPath(loc *Location, ingressAnnotations map[string]string) string {
if loc.MinionIngress != nil {
// Case when annotation 'path-regex' set on Location's Minion.
Expand Down

0 comments on commit 63f7f2f

Please sign in to comment.