Revert CIDR pool allocation and fix delete (#35)

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
This commit is contained in:
Hussein Galal
2023-03-28 23:45:57 +02:00
committed by GitHub
parent 7bcc312b4b
commit ea1e7e486f
7 changed files with 96 additions and 151 deletions

View File

@@ -21,9 +21,7 @@ func Resource(resource string) schema.GroupResource {
func addKnownTypes(s *runtime.Scheme) error {
s.AddKnownTypes(SchemeGroupVersion,
&Cluster{},
&ClusterList{},
&CIDRAllocationPool{},
&CIDRAllocationPoolList{})
&ClusterList{})
metav1.AddToGroupVersion(s, SchemeGroupVersion)
return nil
}

View File

@@ -55,11 +55,9 @@ type LoadBalancerConfig struct {
}
type ClusterStatus struct {
OverrideClusterCIDR bool `json:"overrideClusterCIDR"`
OverrideServiceCIDR bool `json:"overrideServiceCIDR"`
ClusterCIDR string `json:"clusterCIDR,omitempty"`
ServiceCIDR string `json:"serviceCIDR,omitempty"`
ClusterDNS string `json:"clusterDNS,omitempty"`
ClusterCIDR string `json:"clusterCIDR,omitempty"`
ServiceCIDR string `json:"serviceCIDR,omitempty"`
ClusterDNS string `json:"clusterDNS,omitempty"`
}
type Allocation struct {