-
Notifications
You must be signed in to change notification settings - Fork 239
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: add featuregate #1010
feat: add featuregate #1010
Conversation
Welcome @vie-serendipity! |
Hi @vie-serendipity. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
Should we keep reading from ENV, for capability to old installations? |
|
go.mod
Outdated
@@ -123,5 +122,6 @@ replace ( | |||
github.com/stretchr/testify => github.com/stretchr/testify v1.3.0 | |||
google.golang.org/appengine => google.golang.org/appengine v1.4.0 | |||
gopkg.in/yaml.v2 => gopkg.in/yaml.v2 v2.2.2 | |||
k8s.io/component-base => k8s.io/component-base v0.23.16 |
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.
Why replace?
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.
Because version 0.26 of component-base
relies on a higher version of Prometheus, I'm concerned that upgrading will introduce unexpected errors. So I find replace it with a lower version.
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.
what if we directly set component-base
to v0.23.16? would there be any issues?
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.
When I set to v0.23.16, every time I execute go mod tidy
, it will upgrade to v0.26.12. So I have to force to replace it.
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.
I think upgrading Prometheus is fine. We have to do it sooner or later.
Do you mean OR? I think either env or feature gate should enable it. |
/ok-to-test |
+1 and feature-gate should be a higher priority |
@vie-serendipity please solve the conflict |
309738d
to
cd2af87
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mowangdk, vie-serendipity 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Currently, many functional configurations rely on environment variables. The pull request intends to introduce featuregates as a method to enable or disable these features. For now it only support the disk-ad-controller, with plans to expand to more features upon successful testing.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: