-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Update deprecated function call in k8s providers #5241
Conversation
I see that the crd client is also using this function call. Should this be also refactored? |
Hello @Wagum, Thanks for this! You are correct, we should also investigate using We should also look at updating the CRD provider to use |
Hey @dtomcej , im going to add the call on I was concerned about adding This means, that you would have to add the ingressLabelSelector to the corresponding secrets, endpoints and services inside the k8s cluster as well. An other option would be using two factories. One for ingresses including the TweakListOption for labelSelectors, and one further factory for secrets, endpoints and services. This second factory should not use the TweakListOption. I think you implemented something similar in the crd factory for Kubernetes. Im going to rethink about this and propose a solution to you asap. |
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 👍
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.
LGTM
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.
LGTM
remove deprecated function call.
updated CRD client
use csKube as clientset.
What does this PR do?
Remove the usage of deprecated SharedInformerFactory in kubernetes providers.
Motivation
The kubernetes providers should use NewSharedInformerFactoryWithOptions(), due to the fact that NewFilteredSharedInformerFactory() is deprecated and may get removed in future releases.