-
Notifications
You must be signed in to change notification settings - Fork 1.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
Remove deprecated methods #2694
Remove deprecated methods #2694
Comments
Hi Jorge, Thanks for your input, it is much appreciated. I do agree that it's the time to remove these deprecated methods. However, we're on a very tight schedule (must cut final release in the coming week), and most of the team is on PTO or starts PTO today. All of these methods are annotated with The safest approach (IMHO), given our current situation, is to add a deprecation target version in the docs (e.g. WDYT? |
Well, since there is no strict SemVer policy, adding a target version in the docs should be fine 👍 |
Removing the following deprecated methods from KubernetesClient DSL: - `client.customResourceDefinitions()` - `client.events()` - `client.customResources(CustomResourceDefinition crd, Class<T> resourceType, Class<L> listClass)` - `client.customResource(CustomResourceDefinition crd, Class<T> resourceType, Class<L> listClass)`
Removing the following deprecated methods from KubernetesClient DSL: - `client.customResourceDefinitions()` - `client.events()` - `client.customResources(CustomResourceDefinitionContext crd, Class<T> resourceType, Class<L> listClass)` - `client.customResources(CustomResourceDefinition crd, Class<T> resourceType, Class<L> listClass)` - `client.customResource(CustomResourceDefinition crd, Class<T> resourceType, Class<L> listClass)`
Removing the following deprecated methods from KubernetesClient DSL: - `client.customResourceDefinitions()` - `client.events()` - `client.customResources(CustomResourceDefinitionContext crd, Class<T> resourceType, Class<L> listClass)` - `client.customResources(CustomResourceDefinition crd, Class<T> resourceType, Class<L> listClass)` - `client.customResource(CustomResourceDefinition crd, Class<T> resourceType, Class<L> listClass)`
Removing the following deprecated methods from KubernetesClient DSL: - `client.customResourceDefinitions()` - `client.events()` - `client.customResources(CustomResourceDefinitionContext crd, Class<T> resourceType, Class<L> listClass)` - client.customResource(CustomResourceDefinitionContext, Class<T> resource, Class<L> resourceList) is now marked as deprecated
Removing the following deprecated methods from KubernetesClient DSL: - `client.customResourceDefinitions()` - `client.events()` - `client.customResources(CustomResourceDefinitionContext crd, Class<T> resourceType, Class<L> listClass)` - client.customResource(CustomResourceDefinitionContext, Class<T> resource, Class<L> resourceList) is now marked as deprecated
Removing the following deprecated methods from KubernetesClient DSL: - `client.customResourceDefinitions()` - `client.events()` - `client.customResources(CustomResourceDefinitionContext crd, Class<T> resourceType, Class<L> listClass)` - client.customResource(CustomResourceDefinitionContext, Class<T> resource, Class<L> resourceList) is now marked as deprecated
Kubernetes Client 5.0 already breaks many things, so why not do a cleanup for all the deprecated methods?
We are talking about a MAJOR version upgrade, so it should be "safe" to break API compatibility here and have a clean API.
Some examples include:
This has the potential risk that people migrating to this version would not know what it's the alternative, but the risk could be reduced by writing the items in the migration guide.
Probably this would be undesirable, but there are few major upgrades that allow being this harsh. But if the intention is to be more polite, then please close this now.
The text was updated successfully, but these errors were encountered: