Skip to content

Commit

Permalink
chore : Remove networking.k8s.io/v1alpha1 ClusterCIDR from Kubernet…
Browse files Browse the repository at this point in the history
…es Client DSL

`networking.k8s.io/v1alpha1` ClusterCIDR has been removed from Kubernetes 1.29.

Signed-off-by: Rohan Kumar <[email protected]>
  • Loading branch information
rohanKanojia committed Jan 4, 2024
1 parent 2352318 commit fcd29b3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 141 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
*/
package io.fabric8.kubernetes.client;

import io.fabric8.kubernetes.api.model.networking.v1alpha1.ClusterCIDR;
import io.fabric8.kubernetes.api.model.networking.v1alpha1.ClusterCIDRList;
import io.fabric8.kubernetes.api.model.networking.v1alpha1.IPAddress;
import io.fabric8.kubernetes.api.model.networking.v1alpha1.IPAddressList;
import io.fabric8.kubernetes.client.dsl.NonNamespaceOperation;
Expand All @@ -32,21 +30,4 @@ public interface V1Alpha1NetworkAPIGroupDSL extends Client {
* @return {@link NonNamespaceOperation} for IPAddress
*/
NonNamespaceOperation<IPAddress, IPAddressList, Resource<IPAddress>> ipAddresses();

/**
* API entrypoint for networking.k8s.io/v1alpha1 ClusterCIDR
* <br>
* ClusterCIDR represents a single configuration for per-Node Pod CIDR
* allocations when the MultiCIDRRangeAllocator is enabled (see the config for
* kube-controller-manager). A cluster may have any number of ClusterCIDR
* resources, all of which will be considered when allocating a CIDR for a
* Node. A ClusterCIDR is eligible to be used for a given Node when the node
* selector matches the node in question and has free CIDRs to allocate. In
* case of multiple matching ClusterCIDR resources, the allocator will attempt
* to break ties using internal heuristics, but any ClusterCIDR whose node
* selector matches the Node may be used.
*
* @return {@link NonNamespaceOperation} for ClusterCIDR
*/
NonNamespaceOperation<ClusterCIDR, ClusterCIDRList, Resource<ClusterCIDR>> clusterCIDRs();
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
*/
package io.fabric8.kubernetes.client.impl;

import io.fabric8.kubernetes.api.model.networking.v1alpha1.ClusterCIDR;
import io.fabric8.kubernetes.api.model.networking.v1alpha1.ClusterCIDRList;
import io.fabric8.kubernetes.api.model.networking.v1alpha1.IPAddress;
import io.fabric8.kubernetes.api.model.networking.v1alpha1.IPAddressList;
import io.fabric8.kubernetes.client.V1Alpha1NetworkAPIGroupDSL;
Expand All @@ -31,11 +29,6 @@ public NonNamespaceOperation<IPAddress, IPAddressList, Resource<IPAddress>> ipAd
return resources(IPAddress.class, IPAddressList.class);
}

@Override
public NonNamespaceOperation<ClusterCIDR, ClusterCIDRList, Resource<ClusterCIDR>> clusterCIDRs() {
return resources(ClusterCIDR.class, ClusterCIDRList.class);
}

@Override
public V1Alpha1NetworkAPIGroupClient newInstance() {
return new V1Alpha1NetworkAPIGroupClient();
Expand Down

This file was deleted.

0 comments on commit fcd29b3

Please sign in to comment.