Skip to content

Commit

Permalink
Make custom-default-backend upstream name more unique.
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Elfrink <robin.elfrink@eu.equinix.com>
  • Loading branch information
robinelfrink committed Aug 11, 2021
1 parent 402f21b commit 8ee98e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ingress/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ func (n *NGINXController) getBackendServers(ingresses []*ingress.Ingress) ([]*in
endps := getEndpoints(location.DefaultBackend, &sp, apiv1.ProtocolTCP, n.store.GetServiceEndpoints)
// custom backend is valid only if contains at least one endpoint
if len(endps) > 0 {
name := fmt.Sprintf("custom-default-backend-%v", location.DefaultBackend.GetName())
name := fmt.Sprintf("custom-default-backend-%v-%v", location.DefaultBackend.GetNamespace(), location.DefaultBackend.GetName())
klog.V(3).Infof("Creating \"%v\" upstream based on default backend annotation", name)

nb := upstream.DeepCopy()
Expand Down

0 comments on commit 8ee98e9

Please sign in to comment.