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

help request: can not create an ApisixPluginConfig of traffic-split #11923

Closed
FIREcup opened this issue Jan 20, 2025 · 2 comments
Closed

help request: can not create an ApisixPluginConfig of traffic-split #11923

FIREcup opened this issue Jan 20, 2025 · 2 comments
Labels
question label for questions asked by users

Comments

@FIREcup
Copy link

FIREcup commented Jan 20, 2025

Description

this is the ApisixPluginConfig yaml content:

apiVersion: apisix.apache.org/v2
kind: ApisixPluginConfig
metadata:
  name: test-traffic-split
  namespace: xiaom
spec:
  plugins:
  - name: traffic-split
    enable: true
    config:
      rules:
        - match:
            vars:
              - ["http_release", "==", "staging"]
          weighted_upstreams:
            - upstream:
                name: xiaom-svc2
                type: roundrobin
                nodes:
                  "[svc2.xiaom.svc.cluster.local:80](http://svc2.xiaom.svc.cluster.local/)": 10
              weight: 10

after I apply this yaml file, I see errors by describing the resource:
unexpected status code 400; error message: {"error_msg":"invalid configuration: additional properties forbidden, found name"}
Who know the reason?

Environment

  • APISIX version: 3.6.0
@dosubot dosubot bot added the question label for questions asked by users label Jan 20, 2025
@wklken
Copy link

wklken commented Jan 20, 2025

could you reformat the config content? raw yaml in code block

@FIREcup
Copy link
Author

FIREcup commented Jan 20, 2025

have modified the description.
the root cause should be the APISIX version. I tried 3.7.0, and it works.

@FIREcup FIREcup closed this as completed Jan 20, 2025
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Apache APISIX backlog Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question label for questions asked by users
Projects
Status: Done
Development

No branches or pull requests

2 participants