Skip to content
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

chore (kubernetes-client) : Remove networking.k8s.io/v1alpha1 ClusterCIDR from Kubernetes Client DSL #5687

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading