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

fix: consumer name contain "-" #828

Merged
merged 1 commit into from
Jan 4, 2022
Merged

fix: consumer name contain "-" #828

merged 1 commit into from
Jan 4, 2022

Conversation

zaunist
Copy link
Contributor

@zaunist zaunist commented Jan 3, 2022

Type of change:

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches

What this PR does / why we need it:

The schema of APISIX consumer doesn't allow the character -, so we need to replace - to _.
APISIX schema def:https://github.com/apache/apisix/blob/master/apisix/schema_def.lua#L679

fix #752

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@zaunist
Copy link
Contributor Author

zaunist commented Jan 4, 2022

cc @gxthrj @tao12345666333

@gxthrj gxthrj merged commit 8364821 into apache:master Jan 4, 2022
@zaunist zaunist deleted the fix/name_schema branch January 4, 2022 05:51
tao12345666333 pushed a commit to tao12345666333/ingress-controller that referenced this pull request Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: The generated consumer name should not just use the ApisixConsumer metadata.name
4 participants