-
Notifications
You must be signed in to change notification settings - Fork 454
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: use sed replace yq #508
fix: use sed replace yq #508
Conversation
centos/docker-entrypoint.sh
Outdated
/usr/local/apisix/yq -i '.deployment.role = "data_plane"' ${PREFIX}/conf/config.yaml | ||
/usr/local/apisix/yq -i '.deployment.role_data_plane.config_provider = "yaml"' ${PREFIX}/conf/config.yaml | ||
rm /usr/local/apisix/yq | ||
sed -i 's/role: traditional/role: data_plane/' config.yaml |
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.
I dont think we need to match only when role: traditional and config_provider is etcd.
It should be replaced in any case which is role: * and config_provider: *
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.
Sorry for replying to you so late.
I think there may be other role
configurations in config , such as:
test:
role: xxx
@kamly please fix the ci |
fix it ~ |
fix: use sed replace yq