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: use sed replace yq #508

Merged
merged 4 commits into from
Sep 28, 2023

Conversation

kamly
Copy link
Contributor

@kamly kamly commented Sep 27, 2023

fix: use sed replace yq

/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
Copy link
Contributor

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: *

Copy link
Contributor Author

@kamly kamly Sep 27, 2023

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

@Revolyssup
Copy link
Contributor

@kamly please fix the ci

@kamly
Copy link
Contributor Author

kamly commented Sep 28, 2023

fix it ~

@monkeyDluffy6017 monkeyDluffy6017 merged commit e0ac41c into apache:master Sep 28, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants