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

Support canary services in multiple routes of the same proxy #76

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

frankh
Copy link
Contributor

@frankh frankh commented Apr 15, 2024

closes #75

What this PR does / why we need it:

Given an HTTPProxy template that looks like the following:

spec:
  routes:
  - conditions:
    - prefix: /foo
    services:
    - name: web
      weight: 100
    - name: web-canary
      weight: 0
  - conditions:
    - prefix: /bar
    services:
    - name: web
      weight: 100
    - name: web-canary
      weight: 0

Previously we would only update the weights of one of the routes, now we will update all the routes for the appropriate canary

Special notes for your reviewer:

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Given an HTTPProxy template that looks like the following:
```
spec:
  routes:
  - conditions:
    - prefix: /foo
    services:
    - name: web
      weight: 100
    - name: web-canary
      weight: 0
  - conditions:
    - prefix: /bar
    services:
    - name: web
      weight: 100
    - name: web-canary
      weight: 0
```

Previously we would only update the weights of one of the routes, now
we will update all the routes for the appropriate canary

Signed-off-by: Frank Hamand <frankhamand@gmail.com>
Copy link
Collaborator

@izturn izturn left a comment

Choose a reason for hiding this comment

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

thx

@izturn izturn merged commit 4462886 into argoproj-labs:main Apr 16, 2024
5 checks passed
@frankh frankh deleted the support-multiple-routes branch April 16, 2024 07:43
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.

[Feature] Support httpproxies with multiple canary routes
2 participants