- Notifications
You must be signed in to change notification settings - Fork41k
Generic client-go store#133036
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Generic client-go store#133036
Conversation
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Skipping CI for Draft Pull Request. |
/test all |
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 availablehere. If you have questions or suggestions related to my behavior, please file an issue against thekubernetes-sigs/prow repository. |
/test pull-kubernetes-linter-hints |
/test pull-kubernetes-verify |
/test pull-kubernetes-apidiff-client-go |
The contents of this file are only used in tests, but because itdoesn't end in test its variables leak into regular builds. This pullsin cmpopts.IgnoreFields which prevents dead code elimination whengenerifying client-go.Signed-off-by: Stephen Kitt <skitt@redhat.com>
/test pull-kubernetes-verify |
[APPROVALNOTIFIER] This PR isNOT APPROVED This pull-request has been approved by:skitt The full list of commands accepted by this bot can be foundhere. Needs approval from an approver in each of these files: Approvers can indicate their approval by writing |
This should have been moved to the test file with GetByKey(), but itcan be entirely replaced by slices.Clone() so use that instead.Signed-off-by: Stephen Kitt <skitt@redhat.com>
/test pull-kubernetes-apidiff-client-go |
@skitt: The following testfailed, say
Full PR test history.Your PR dashboard. Please help us cut down on flakes bylinking to anopen issue when you hit one in your PR. Instructions for interacting with me using PR comments are availablehere. If you have questions or suggestions related to my behavior, please file an issue against thekubernetes-sigs/prow repository. I understand the commands that are listedhere. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This adds typed variants of the client-go store and related data structures. This allows the compiler to enforce types at build-time.
The PersistentVolume controller is modified to use the typed store to illustrate the benefits.
Many client-go stores are based on informers, so this can’t be pushed too far without having to generify informers too.
Which issue(s) this PR is related to:
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: