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

Gloo Upstream Ref for Upstream Config #908

Merged
merged 1 commit into from May 14, 2021

Conversation

kdorosh
Copy link
Contributor

@kdorosh kdorosh commented May 13, 2021

Flagger currently creates upstreams that point to the canary and primary kube services that are generated by flagger. In some use cases, users need additional config to be applied to the created upstreams. This PR allows for an upstreamRef to be specified in the Canary Spec API which points to an already existing Upstream. Flagger will copy the config from this Upstream to the flagger-generated upstreams.

@kdorosh
Copy link
Contributor Author

kdorosh commented May 13, 2021

Adding with docs updates to supersede #904

@codecov-commenter
Copy link

codecov-commenter commented May 13, 2021

Codecov Report

Merging #908 (178c483) into main (3ad55c9) will decrease coverage by 0.09%.
The diff coverage is 44.44%.

❗ Current head 178c483 differs from pull request most recent head a286625. Consider uploading reports for the commit a286625 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #908      +/-   ##
==========================================
- Coverage   56.76%   56.66%   -0.10%     
==========================================
  Files          69       69              
  Lines        5704     5721      +17     
==========================================
+ Hits         3238     3242       +4     
- Misses       1983     1994      +11     
- Partials      483      485       +2     
Impacted Files Coverage Δ
pkg/router/gloo.go 74.87% <44.44%> (-5.65%) ⬇️
pkg/canary/config_tracker.go 83.25% <0.00%> (+0.90%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ad55c9...a286625. Read the comment docs.

@kdorosh kdorosh marked this pull request as ready for review May 13, 2021 20:47
@stefanprodan
Copy link
Member

@kdorosh can you please squash all commits? Thanks

Signed-off-by: Keerthan Ekbote <keerthan.ekbote@solo.io>

intermediate commit

Signed-off-by: Keerthan Ekbote <keerthan.ekbote@solo.io>

updated gloo unit tests

Signed-off-by: Keerthan Ekbote <keerthan.ekbote@solo.io>

copy config from upstream ref to flagger-generateed upstreams

Signed-off-by: Keerthan Ekbote <keerthan.ekbote@solo.io>

removed unneeded types

Signed-off-by: Keerthan Ekbote <keerthan.ekbote@solo.io>

make fmt

Signed-off-by: Keerthan Ekbote <keerthan.ekbote@solo.io>

added code-generator to replace

Signed-off-by: Keerthan Ekbote <keerthan.ekbote@solo.io>

reverted go.mod

Signed-off-by: Keerthan Ekbote <keerthan.ekbote@solo.io>

fixed struct

Signed-off-by: Keerthan Ekbote <keerthan.ekbote@solo.io>

updated e2es with new upstream ref

Signed-off-by: Keerthan Ekbote <keerthan.ekbote@solo.io>

Add note to docs about upstreamRef

Signed-off-by: Kevin Dorosh <kevin.dorosh@solo.io>

Fix typo, improve clarity

Signed-off-by: Kevin Dorosh <kevin.dorosh@solo.io>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @kdorosh 🥇

@stefanprodan stefanprodan merged commit 41e427d into fluxcd:main May 14, 2021
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.

None yet

4 participants