Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Fix buildupstream name to work with dynamically enabled session affinity #43

Closed
wants to merge 1 commit into from

Conversation

zrdaley
Copy link

@zrdaley zrdaley commented Apr 9, 2018

When dynamic configuration is enabled ngx.var.proxy_upstream_name is used to get the current backend (stored on the NGINX configuration) in the balancer lua module. This variabled is created in buildUpstreamName in /internal/ingress/controller/controller.go. However, backends stored in the NGINX configuration do not use the convention sticky-<upstream-name>.

This PR prevent buildUpstreamName from using the naming convention sticky-<upstream-name> when dynamic configuration is enabled.

@zrdaley zrdaley changed the title Fix buildupstream name to work with dynamically enabled session affinity [WIP] Fix buildupstream name to work with dynamically enabled session affinity Apr 10, 2018
@ElvinEfendi
Copy link

this looks good to me, please go fmt your code and regenerate bindata and make upsteam PR directly for this with the enough context

@zrdaley zrdaley closed this Apr 12, 2018
@zrdaley zrdaley deleted the sticky-ups-name branch April 12, 2018 23:41
@ElvinEfendi
Copy link

this was merged to upstream master in kubernetes#2340

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants