-
Notifications
You must be signed in to change notification settings - Fork 10.1k
pkg/featuregate: Return MutableFeatureGate interface in New function #19803
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
pkg/featuregate: Return MutableFeatureGate interface in New function #19803
Conversation
Avoid returning an unexported struct in the exported New function, instead return the MutableFeatureGate interface. Signed-off-by: Ivan Valdes <ivan@vald.es>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 59 files with indirect coverage changes @@ Coverage Diff @@
## main #19803 +/- ##
==========================================
- Coverage 68.86% 65.95% -2.91%
==========================================
Files 421 421
Lines 35863 35863
==========================================
- Hits 24696 23654 -1042
- Misses 9746 10770 +1024
- Partials 1421 1439 +18 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
CodeCov failure comes from the Prow job failure: https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/post-etcd-coverage-report/1915918905981800448. I tried re-running the job, but I don't have permission to do that. |
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.
Thanks @ivanvc for the catch.
Not sure why the coverage workflow fails from time to time.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, ivanvc, siyuanfoundation 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 |
/cherry-pick release-3.6 |
@ahrtr: new pull request created: #19816 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-sigs/prow repository. |
It looks like these three tests are flaky according to testgrid:
|
PTAL #19748 |
Avoid returning an unexported struct in the exported New function. Instead, return the MutableFeatureGate interface.
I found this issue in the recently introduced
featuregate
package while reviewing the staleness of #18370. Since this package was introduced in v3.6, it makes sense to merge and backport torelease-3.6
./cc @ahrtr @siyuanfoundation
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.