-
Notifications
You must be signed in to change notification settings - Fork 529
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
mimirtool: deprecate rule-files flag #7756
Conversation
The flag is unnecessary since it is an argument in all updated commands.
We should issue a deprecation notice before deleting the flag (and it's functionality): https://github.com/grafana/mimir/blob/main/docs/sources/mimir/configure/about-versioning.md#deprecated-features And then we should keep it for 2 versions more, otherwise we might break people's CI workflows. |
This reverts commit c82d2e0.
@colega Thanks for the review, PR updated to only deprecate the flags. |
Co-authored-by: Oleg Zaytsev <mail@olegzaytsev.com>
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.
Thank you.
What this PR does
A few
mimirtool
commands accepted arule-files
flag:rules diff
,rules sync
,rules prepare
,rules lint
, andrules check
. However, all these commands also accept a list of rule files as argument. Therefore, the flag is a duplicate which is inconsistent.This flag originated in 9b206ce. Back then, the list of rule files was only an argument for one command:
rules load
, and that command never got arule-files
flag. The rule files argument was added later to more commands, in https://github.com/grafana/cortex-tools/pull/125/files, but the existingrule-files
flag was not removed.This will be a breaking change for folks relying on
mimirtool
in scripts, for now the flag is only deprecated.Which issue(s) this PR fixes or relates to
Fixes #6747
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.