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

Feature: config validation for apisix in standalone mode #103

Closed
polaru opened this issue Dec 8, 2023 · 4 comments
Closed

Feature: config validation for apisix in standalone mode #103

polaru opened this issue Dec 8, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@polaru
Copy link

polaru commented Dec 8, 2023

Description

As a user running apisix in standalone mode, I would like to have a way to verify the configuration before submitting it to the instance.

In my case, we're running apisix in a kubernetes deployment, using configMaps for config.yaml and apisix.yaml. I would like to be able to verify the configuration in a step of the deployment pipeline, before updating the live/production configMaps.

@polaru polaru added the enhancement New feature or request label Dec 8, 2023
@polaru
Copy link
Author

polaru commented Dec 12, 2023

Can this be linked to apache/apisix#10630 ? I think it's relevant.

@juzhiyuan
Copy link
Contributor

Thank you for mentioning this! But I think standalone doesn't work with adc, as adc uses ETCD as well. They're two different control ways. 🤔 Correct me if I'm wrong.

@polaru
Copy link
Author

polaru commented Jan 3, 2024

The other issue I linked (apache/apisix#10630) doesn't mention adc and the suggested changes don't point to adc either; it looks to me like that person was trying to implement a test function in apisix directly, like apisix test. That's why I linked it. But if that's wrong, feel free to ignore the suggestion.

@juzhiyuan
Copy link
Contributor

Yes. Standalone and ADC are two different data sources.

ADC has supported to do validation for APISIX 3.6+. And if you're looking for validation against Standalone apisix.yaml, please refer to apache/apisix#10630.

bzp2010 added a commit to bzp2010/adc that referenced this issue Jul 12, 2024
bzp2010 added a commit to bzp2010/adc that referenced this issue Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants