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. |
|
[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 DetailsNeeds 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 DetailsIn 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
featuregatepackage 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.