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

fixes: rename default config group label, support/fall back to deprecated labels. #231

Merged
merged 3 commits into from
Jan 15, 2024

Conversation

klihub
Copy link
Collaborator

@klihub klihub commented Jan 12, 2024

This patch set

  • changes the default configuration group label to config.nri/group
  • falls back to look for deprecated labels (group.config.nri, resource-policy.nri.io/group) if the configured label is absent
  • allows overriding the default configuration group label on the command line via helm charts

@klihub klihub requested a review from askervin January 12, 2024 11:50
To avoid inconveniences with some existing tooling, change the
default configuration group label to 'prefix.domain/key' format.

Signed-off-by: Krisztian Litkey <[email protected]>
Fall back to looking for deprecated group labels if the default or
configured one is not found.

Signed-off-by: Krisztian Litkey <[email protected]>
Copy link
Collaborator

@marquiz marquiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is ok in the project in this early stage. But generally I think deprecating things in a patch release are questionable (or other functional changes)

@klihub
Copy link
Collaborator Author

klihub commented Jan 12, 2024

I think this is ok in the project in this early stage. But generally I think deprecating things in a patch release are questionable (or other functional changes)

IMO as long as we keep the deprecated things intact/supported throughout the whole main release cycle where the patch release belongs to (IOW in this case 0.3.x) and if timing requires (IOW deprecation is too close to the end of the main release lifecycle) also during the next one (IOW in our case that would be 0.4.x), then it should be perfectly fine to deprecate things in any patch release.

This patch set should not introduce any functional changes, unless we consider an additional log message a functional change. If things worked for you without this patch set, they should work the same with this patch set in place, too.

Copy link
Collaborator

@askervin askervin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you @klihub!

Copy link
Collaborator

@fmuyassarov fmuyassarov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@klihub klihub merged commit 7c70158 into containers:main Jan 15, 2024
3 checks passed
@klihub klihub deleted the fixes/config-group-labels branch January 15, 2024 09:04
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