Skip to content

Commit

Permalink
Merge pull request #66 from ykulazhenkov/pr-remove-node-migration
Browse files Browse the repository at this point in the history
Remove store migration logic from ipam-node
  • Loading branch information
ykulazhenkov authored Nov 28, 2024
2 parents b87556e + 50daacb commit dab8849
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 315 deletions.
6 changes: 0 additions & 6 deletions cmd/ipam-node/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ import (
ippoolctrl "github.com/Mellanox/nvidia-k8s-ipam/pkg/ipam-node/controllers/ippool"
"github.com/Mellanox/nvidia-k8s-ipam/pkg/ipam-node/grpc/middleware"
"github.com/Mellanox/nvidia-k8s-ipam/pkg/ipam-node/handlers"
"github.com/Mellanox/nvidia-k8s-ipam/pkg/ipam-node/migrator"
storePkg "github.com/Mellanox/nvidia-k8s-ipam/pkg/ipam-node/store"
poolPkg "github.com/Mellanox/nvidia-k8s-ipam/pkg/pool"
"github.com/Mellanox/nvidia-k8s-ipam/pkg/version"
Expand Down Expand Up @@ -219,11 +218,6 @@ func RunNodeDaemon(ctx context.Context, config *rest.Config, opts *options.Optio
return err
}
s.Cancel()
if err := migrator.New(store).Migrate(ctx); err != nil {
logger.Error(err, fmt.Sprintf("failed to migrate host-local IPAM store, "+
"set %s env variable to disable migration", migrator.EnvDisableMigration))
return err
}

grpcServer, listener, err := initGRPCServer(opts, logger, poolManager, store)
if err != nil {
Expand Down
161 changes: 0 additions & 161 deletions pkg/ipam-node/migrator/migrator.go

This file was deleted.

26 changes: 0 additions & 26 deletions pkg/ipam-node/migrator/migrator_suite_test.go

This file was deleted.

122 changes: 0 additions & 122 deletions pkg/ipam-node/migrator/migrator_test.go

This file was deleted.

0 comments on commit dab8849

Please sign in to comment.