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

running "rules sync" without any parameters deletes all rules. #183

Open
simonc6372 opened this issue May 6, 2021 · 0 comments
Open

running "rules sync" without any parameters deletes all rules. #183

simonc6372 opened this issue May 6, 2021 · 0 comments
Labels
bug Something isn't working command/cortex-tool

Comments

@simonc6372
Copy link

Hi,
If cortextool rules sync is ran without parameters for rule-files or rule-dirs then it assumes a null set of rules and deletes all the rules on the destination ruler without further warning.

I would expect if it was told to do a rules sync, then it should have either a rule-files, or a rule-dirs parameter and if one or other is not set, it should exit with an error. If deleting all rules is the desired behaviour, then this should happen with either parameter set to /dev/null

Thanks.

@jtlisi jtlisi added bug Something isn't working command/cortex-tool labels Jun 10, 2021
friedrichg pushed a commit to cortexproject/cortex-tools that referenced this issue Aug 1, 2023
* check for updated README.md in CI

Signed-off-by: Tom Hayward <thayward@infoblox.com>

* add missing values

Signed-off-by: Tom Hayward <thayward@infoblox.com>

* generate readme

Signed-off-by: Tom Hayward <thayward@infoblox.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working command/cortex-tool
Projects
None yet
Development

No branches or pull requests

2 participants