Skip to content

Commit

Permalink
Merge pull request #7479 from equinix-ms/main
Browse files Browse the repository at this point in the history
Make custom-default-backend upstream name more unique.
  • Loading branch information
rikatz authored Aug 12, 2021
2 parents 2fe8270 + 8ee98e9 commit e9f0ad3
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 e9f0ad3

Please sign in to comment.