-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat: support labels key in transformer configuration #5556
feat: support labels key in transformer configuration #5556
Conversation
Skipping CI for Draft Pull Request. |
/lgtm |
/remove-lgtm |
0ee7f36
to
ce7a2ab
Compare
ce7a2ab
to
7109804
Compare
0d48763
to
d340e96
Compare
This PR has multiple commits, and the default merge method is: merge. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign koba1t |
Hi @stormqueen1990 |
Allow the usage of a separate transformer configuration for the labels key, similar to what is currently available for commonLabels and commonAnnotations. This aims to provide the same functionality that commonLabels currently provide for labels, since commonLabels is deprecated and slated for removal in a future release.
Add a nolint hint to the new method so the returns can stay consistent with one another.
* Rename methods `AddCommonLabelFieldSpec` and `AddLabelFieldSpec` to `AddCommonLabelsFieldSpec` and `AddLabelsFieldSpec`. * Add extra test to verify scenarios applying labels to Custom Resource Definitions.
be38001
to
5ba4be3
Compare
Done! Let me know if there's anything else that needs to be addressed 😄 |
/label tide/merge-method-squash |
Thanks for your work! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: koba1t, stormqueen1990 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Allow the usage of a separate transformer configuration for the
labels
key, similar to what is currently available forcommonLabels
andcommonAnnotations
. This aims to provide the same functionality thatcommonLabels
currently provide forlabels
, sincecommonLabels
is deprecated and slated for removal in a future release.This implementation is partially based the work done in PR #5086
Fixes #4816