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 authored and rikatz committed Aug 12, 2021
1 parent f973f3f commit 661767b
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 @@ -727,7 +727,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 661767b

Please sign in to comment.