Closed tanveergill closed 11 months ago
The recent updates involve a significant renaming and deprecation effort across various configuration and code files. Fields related to label matching have been renamed for consistency and clarity, with match_expressions
becoming match_list
and related message types being updated to reflect new naming conventions. Deprecated fields and types have been replaced with new ones, and additional functions have been introduced to ensure backward compatibility with older configurations.
File Path | Change Summary |
---|---|
api/.../v1/label_matcher.proto |
Renamed match_expressions to match_list and K8sLabelMatcherRequirement to MatchRequirement ; deprecated old fields in favor of new ones. |
docs/content/concepts/selector.md |
Updated YAML configuration examples and explanations to reflect renaming from match_expressions to match_list . |
docs/content/reference/configuration/spec.md |
Renamed EqualsMatchExpression to EqualsExpression and MatchExpression to MatchRequirement ; deprecated some types and updated documentation. |
pkg/.../selectors/selector.go |
Updated functions to loop over new match_list and handle new Expression structure; added backCompatConvLabelMatcher for backward compatibility. |
🐇 In the land of code, where matchers align, A rabbit hopped through, renaming in kind. With a whisk of its tail, old fields deprecated, New matchers emerged, perfectly updated. 🌟 🐇
Description of change
Checklist
Summary by CodeRabbit
Documentation Updates
EqualsMatchExpression
toEqualsExpression
andMatchExpression
toMatchRequirement
in the configuration specification.Refactor
New Features
Expression
type to enhance label matching capabilities.Deprecations
K8sLabelMatcherRequirement
andmatch_labels
fields in favor of more current alternatives.