Repository navigation
Revert "Reduce load on the Kubernetes API server and reduce the peak memory use of the cert-manager components by enabling the use of the WatchList (Streaming Lists) feature" - #7315
cert-manager-prow[bot] merged 1 commit into
Conversation
…memory use of the cert-manager components by enabling the use of the WatchList (Streaming Lists) feature" Signed-off-by: Richard Wall <[email protected]>
|
Skipping CI for Draft Pull Request. |
|
/retest |
|
This will simplify our code, there will be only one way to configure these gates. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: inteon 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-1.16 |
|
@wallrj: new pull request created: #7318 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. |
Reverts #7175
I have learned that there is a general mechanism enabling client-go feature flags, using environment variables,
so PR #7175 was not necessary.
See Overriding client-go feature gates in the "Introducing Feature Gates to Client-Go: Enhancing Flexibility and Control" blog post.
Upgrading to client-go 0.31 is sufficient for users to test the WatchListClient feature,
by adding
KUBE_FEATURE_WatchListClient=trueto the environment variables of the components.You will see the state of the client-go features in the logs:
vs
/kind cleanup
Testing
I deployed cert-manager from this branch in a Kind cluster with 100MiB Secret resources.
With
KUBE_FEATURE_WatchListClient=falseand thenKUBE_FEATURE_WatchListClient=true.Measured the peak memory usage of controller using the VmHWM file in /proc/*/status.
See https://gist.github.com/wallrj/3cb36a09d8697f2ebc2a109dd8202b36