-
Notifications
You must be signed in to change notification settings - Fork 40k
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
kubectl: Document --for's Unicode case-folding condition-value comparison #104671
kubectl: Document --for's Unicode case-folding condition-value comparison #104671
Conversation
@wking: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
Hi @wking. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
d587dc8
to
44a7975
Compare
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.
Good add, thanks Trevor.
/kind cleanup |
8a12979
to
b436cae
Compare
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.
/lgtm
@2uasimojo: changing LGTM is restricted to collaborators In response to this:
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. |
…ison When the wait command was added in 7679464 (add wait, 2018-05-18, kubernetes#64034), this comparison was via ToLower. It moved to use Unicode case folding [1,2] in f4940cf (Staticcheck: vendor/k8s.io/kubectl/pkg/scale|describe/versioned|cmd/top|cmd/util/editor|cmd/top, 2020-01-21, kubernetes#87403). [1]: https://pkg.go.dev/strings#EqualFold [2]: http://www.unicode.org/reports/tr30/tr30-1.html
b436cae
to
f69d523
Compare
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.
Still good. I reinstate my impotent
/lgtm
@2uasimojo: changing LGTM is restricted to collaborators In response to this:
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. |
/ok-to-test |
Thanks! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eddiezane, wking 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 |
When the wait command was added in 7679464 (#64034), this comparison was via ToLower. It moved to use Unicode case folding in f4940cf (#87403).
It's possible that saying "string-insensitive matching" is sufficient. Seems like Go is using
SimpleFold
to implementEqualFold
, and that means full case-fold situations like ß ⇒ ss aren't implemented. In some brief poking around, I haven't found a situation whereEqualFold(a,b)
diverges fromToLower(a) == ToLower(b)
.