Skip to content

Commit

Permalink
remove the SearchDomain API
Browse files Browse the repository at this point in the history
  • Loading branch information
aleoli authored and adamjensenbot committed Jun 10, 2022
1 parent ddacebb commit 514dd69
Show file tree
Hide file tree
Showing 19 changed files with 11 additions and 648 deletions.
3 changes: 1 addition & 2 deletions apis/discovery/v1alpha1/foreigncluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ const (
// manual -> No
// incomingPeering -> No
// LAN -> Yes
// WAN -> looks at the SearchDomain Spec.
PeeringEnabledAuto PeeringEnabledType = "Auto"
// PeeringEnabledNo indicates to disable the peering with this remote cluster.
PeeringEnabledNo PeeringEnabledType = "No"
Expand Down Expand Up @@ -110,7 +109,7 @@ type ForeignClusterSpec struct {
// +kubebuilder:default=true
// +kubebuilder:validation:Optional
InsecureSkipTLSVerify *bool `json:"insecureSkipTLSVerify"`
// If discoveryType is LAN or WAN and this indicates the number of seconds after that
// If discoveryType is LAN, this indicates the number of seconds after that
// this ForeignCluster will be removed if no updates have been received.
// +kubebuilder:validation:Minimum=0
TTL int `json:"ttl,omitempty"`
Expand Down
3 changes: 0 additions & 3 deletions apis/discovery/v1alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,4 @@ var (

// ResourceRequestGroupResource is the group resource used to register ResourceRequest CRD.
ResourceRequestGroupResource = schema.GroupResource{Group: GroupVersion.Group, Resource: ResourceRequestResource}

// SearchDomainGroupResource is the group resource used to register SearchDomain CRD.
SearchDomainGroupResource = schema.GroupResource{Group: GroupVersion.Group, Resource: "searchdomains"}
)
65 changes: 0 additions & 65 deletions apis/discovery/v1alpha1/searchdomain_types.go

This file was deleted.

89 changes: 0 additions & 89 deletions apis/discovery/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions cmd/liqo-controller-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ import (
resourceRequestOperator "github.com/liqotech/liqo/pkg/liqo-controller-manager/resource-request-controller"
resourcemonitors "github.com/liqotech/liqo/pkg/liqo-controller-manager/resource-request-controller/resource-monitors"
resourceoffercontroller "github.com/liqotech/liqo/pkg/liqo-controller-manager/resourceoffer-controller"
searchdomainoperator "github.com/liqotech/liqo/pkg/liqo-controller-manager/search-domain-operator"
shadowpodctrl "github.com/liqotech/liqo/pkg/liqo-controller-manager/shadowpod-controller"
liqostorageprovisioner "github.com/liqotech/liqo/pkg/liqo-controller-manager/storageprovisioner"
virtualNodectrl "github.com/liqotech/liqo/pkg/liqo-controller-manager/virtualNode-controller"
Expand Down Expand Up @@ -225,17 +224,6 @@ func main() {
insecureTransport := &http.Transport{IdleConnTimeout: 1 * time.Minute, TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}

// Setup operators
searchDomainReconciler := &searchdomainoperator.SearchDomainReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
ResyncPeriod: *resyncPeriod,
LocalCluster: clusterIdentity,
InsecureTransport: insecureTransport,
}
if err = searchDomainReconciler.SetupWithManager(mgr); err != nil {
klog.Fatal(err)
}

foreignClusterReconciler := &foreignclusteroperator.ForeignClusterReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
Expand Down
6 changes: 3 additions & 3 deletions deployments/liqo/crds/discovery.liqo.io_foreignclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ spec:
- "Yes"
type: string
ttl:
description: If discoveryType is LAN or WAN and this indicates the
number of seconds after that this ForeignCluster will be removed
if no updates have been received.
description: If discoveryType is LAN, this indicates the number of
seconds after that this ForeignCluster will be removed if no updates
have been received.
minimum: 0
type: integer
required:
Expand Down
61 changes: 0 additions & 61 deletions deployments/liqo/crds/discovery.liqo.io_searchdomains.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions deployments/liqo/files/liqo-controller-manager-ClusterRole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,26 +228,6 @@ rules:
- deletecollection
- list
- watch
- apiGroups:
- discovery.liqo.io
resources:
- searchdomains
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- discovery.liqo.io
resources:
- searchdomains/finalizers
verbs:
- get
- patch
- update
- apiGroups:
- metrics.liqo.io
resources:
Expand Down
4 changes: 0 additions & 4 deletions pkg/discovery/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ const (
AuthTokenLabel = "discovery.liqo.io/auth-token"
// DiscoveryTypeLabel used to mark the discovery type.
DiscoveryTypeLabel = "discovery.liqo.io/discovery-type"
// SearchDomainLabel used to mark the search domain linked to the foreign cluster.
SearchDomainLabel = "discovery.liqo.io/searchdomain"
)

// Type indicates how a ForeignCluster has been discovered.
Expand All @@ -40,8 +38,6 @@ type Type string
const (
// LanDiscovery value.
LanDiscovery Type = "LAN"
// WanDiscovery value.
WanDiscovery Type = "WAN"
// ManualDiscovery value.
ManualDiscovery Type = "Manual"
// IncomingPeeringDiscovery value.
Expand Down

0 comments on commit 514dd69

Please sign in to comment.