Skip to content

Commit

Permalink
fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes94 committed Oct 14, 2024
1 parent 28a96ed commit a2d7c73
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 53 deletions.
6 changes: 0 additions & 6 deletions internal/dinosaur/pkg/routes/route_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,6 @@ func (s *options) buildAPIBaseRouter(mainRouter *mux.Router, basePath string, op
Methods(http.MethodPost)
}

if features.ClusterMigration.Enabled() {
adminCentralsRouter.HandleFunc("/{id}/assign-cluster", adminCentralHandler.AssignCluster).
Name(logger.NewLogEvent("admin-central-assign-cluster", "[admin] change central cluster assignment").ToString()).
Methods(http.MethodPost)
}

adminCentralsRouter.HandleFunc("/{id}/traits", adminCentralHandler.ListTraits).
Name(logger.NewLogEvent("admin-list-traits", "[admin] list central traits").ToString()).
Methods(http.MethodGet)
Expand Down
2 changes: 0 additions & 2 deletions internal/dinosaur/pkg/services/cluster_placement_strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import (
type ClusterPlacementStrategy interface {
// FindCluster finds and returns a Cluster depends on the specific impl.
FindCluster(central *dbapi.CentralRequest) (*api.Cluster, error)
// AllMatchingClustersForCentral returns all cluster that fit the criteria to run a central
AllMatchingClustersForCentral(central *dbapi.CentralRequest) ([]*api.Cluster, error)
}

// NewClusterPlacementStrategy return a concrete strategy impl. depends on the
Expand Down
46 changes: 1 addition & 45 deletions internal/dinosaur/pkg/services/cluster_placement_strategy_moq.go

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

0 comments on commit a2d7c73

Please sign in to comment.