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

only add upstreams when needed #4105

Merged
merged 12 commits into from
Oct 24, 2021

Conversation

jackkav
Copy link
Contributor

@jackkav jackkav commented Oct 13, 2021

Upstream config is only needed when load balancing, which is indicated by having two services, or by using the x-kong-upstream-default tag.

Closes INS-837

@jackkav jackkav force-pushed the feat/remove-unused-upstreams branch from d651dc5 to af27fdb Compare October 13, 2021 19:04
@jackkav jackkav self-assigned this Oct 13, 2021
@jackkav jackkav enabled auto-merge (squash) October 13, 2021 19:52
@vercel vercel bot temporarily deployed to Preview October 19, 2021 11:25 Inactive
Copy link
Contributor

@develohpanda develohpanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Largely LGTM! There's a comment outlining a small refactor to re-use logic, that will allow us to write some unit tests as well.

@jackkav jackkav merged commit 3e7a7d7 into Kong:develop Oct 24, 2021
@jackkav jackkav deleted the feat/remove-unused-upstreams branch October 24, 2021 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants