Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ingress update to an existing backend #847

Merged
merged 1 commit into from
Aug 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/converters/ingress/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (c *converter) syncPartial() {
//
// All state change works removing hosts and backs objects in an old state and
// resyncing ingress objects to recreate hosts and backs in a new state. This
// works very well, except with new ingress objects that references hosts or
// works very well, except with ingress objects that starts to reference hosts or
// backs that already exist - all the tracking starts from the ingress parsing.
//
// trackAddedIngress does the same tracking the sync ingress already do, but
Expand All @@ -377,7 +377,7 @@ func (c *converter) syncPartial() {
// here and removed before parse the added ingress which will readd such hosts
// and backs
func (c *converter) trackAddedIngress() {
for _, ing := range c.changed.IngressesAdd {
for _, ing := range append(c.changed.IngressesAdd, c.changed.IngressesUpd...) {
name := ing.Namespace + "/" + ing.Name
if ing.Spec.DefaultBackend != nil {
backend := c.findBackend(ing.Namespace, ing.Spec.DefaultBackend)
Expand Down