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
Fix possible resource leak on KubernetesClientConfiguration
without introducing IDisposable
#1449
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: PSanetra The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @PSanetra! |
… introducing `IDisposable` Breaking Changes: * Using `KubernetesClientConfiguration.SslCaCerts` or `KubernetesClientConfiguration.LoadSslCaCerts()` requires the user to dispose the returned `X509Certificate2Collection` after usage. * Setter of `KubernetesClientConfiguration.SslCaCerts` was removed.
62477b3
to
b7d0a16
Compare
IDisposable
on KubernetesClientConfiguration
KubernetesClientConfiguration
without introducing IDisposable
prefer idisposable which does not introduce breaking change |
@tg123 Introducing the In comparison introducing the Additionally the proposed approach in this PR will probably affect only very few code bases. Only those which did directly use |
PR needs rebase. 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. |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
@tg123 Can you have another look at this PR? |
Fix #1446 without introducing
IDisposable
onKubernetesClientConfiguration
Breaking Changes:
KubernetesClientConfiguration.SslCaCerts
orKubernetesClientConfiguration.LoadSslCaCerts()
requires the user to dispose the returnedX509Certificate2Collection
after usage.KubernetesClientConfiguration.SslCaCerts
was removed.