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

Remove store migration logic from ipam-node #66

Merged
merged 1 commit into from
Nov 28, 2024
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
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.

Loading