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

Unable to find service in HTTPProxy with more than one route #15

Closed
mvgmb opened this issue May 16, 2023 · 0 comments · Fixed by #16
Closed

Unable to find service in HTTPProxy with more than one route #15

mvgmb opened this issue May 16, 2023 · 0 comments · Fixed by #16
Labels
bug Something isn't working

Comments

@mvgmb
Copy link
Contributor

mvgmb commented May 16, 2023

Describe the bug

When trying to set the weight of an HTTPProxy with more than one route, it is only able to find the services of the first route:

'TrafficRoutingError' failed to set weight via plugin: the service: api-canary is not found in HTTPProxy

To Reproduce

Create an HTTPProxy with more than one route, and try to set the weight of the second route.

apiVersion: projectcontour.io/v1
kind: HTTPProxy
metadata:
  name: app
spec:
  virtualhost:
    fqdn: example.com
    tls:
      secretName: ingress
  routes:
    - conditions:
        - prefix: /
      services:
        - name: web
          port: 80
        - name: web-canary
          port: 80
    - conditions:
        - prefix: /api
      services:
        - name: api
          port: 80
        - name: api-canary
          port: 80
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
  name: app
spec:
  strategy:
    canary:
      canaryService: api-canary
      stableService: api
      trafficRouting:
        plugins:
          argoproj-labs/contour:
            namespace: api
            httpProxy: api

Version

argoproj/argo-rollouts:v1.5.0
argoproj-labs/rollouts-plugin-trafficrouter-contour:v0.1.1
@mvgmb mvgmb added the bug Something isn't working label May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant