-
Notifications
You must be signed in to change notification settings - Fork 456
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: allow config.yaml to be updated when already present for standalone mode #494
Conversation
…one mode Signed-off-by: Ashish Tiwari <[email protected]>
Signed-off-by: Ashish Tiwari <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a test like this: https://github.com/apache/apisix-docker/blob/master/.github/workflows/apisix-docker-example-test.yaml
For standalone mode.
Signed-off-by: Ashish Tiwari <[email protected]>
Signed-off-by: Ashish Tiwari <[email protected]>
Signed-off-by: Ashish Tiwari <[email protected]>
Signed-off-by: Ashish Tiwari <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the test and example!
proposed change already done
…one mode (#494) (#497) Signed-off-by: Ashish Tiwari <[email protected]>
@kamly This if condition check wasn't removed in the PR |
@kamly You're right. But this still didn't cause the issue. The issue was because it takes time for few things to be setup in container now. Though this is still an issue because it removed apisix.yaml. I will readd it. |
i fix it #502 |
Fixed #495
In this PR https://github.com/apache/apisix-docker/pull/491/files, the logic was changed so that if config.yaml is already present then it is not updated or initialised.
But the update is necessary for standalone mode where config_provider is changed to config.yaml.
This change makes sure that if the file doesn't exist then it is initialised. Otherwise relevant fields are updated for standalone mode
NOTE: yq utility is being downloaded at runtime so the startup time for standalone mode might increase by few seconds.