mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
Remove manual state migration steps for AWS
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
154d1cc3cf
commit
e30179a8aa
9 changed files with 20 additions and 146 deletions
|
@ -597,7 +597,6 @@ func (c *Client) setLogLevel(logLevel LogLevel) error {
|
|||
}
|
||||
|
||||
// StateMigration is a manual state migration that is not handled by Terraform due to missing features.
|
||||
// TODO(AB#3248): Remove this after we can assume that all existing clusters have been migrated.
|
||||
type StateMigration struct {
|
||||
DisplayName string
|
||||
Hook func(ctx context.Context, tfClient TFMigrator) error
|
||||
|
@ -628,7 +627,6 @@ type tfInterface interface {
|
|||
}
|
||||
|
||||
// TFMigrator is an interface for manual terraform state migrations (terraform state mv).
|
||||
// TODO(AB#3248): Remove this after we can assume that all existing clusters have been migrated.
|
||||
type TFMigrator interface {
|
||||
StateMv(ctx context.Context, src, dst string, opts ...tfexec.StateMvCmdOption) error
|
||||
}
|
||||
|
|
|
@ -283,15 +283,3 @@ module "instance_group" {
|
|||
{ "kubernetes.io/cluster/${local.name}" = "owned" }
|
||||
)
|
||||
}
|
||||
|
||||
// TODO(AB#3248): Remove this migration after we can assume that all existing clusters have been migrated.
|
||||
moved {
|
||||
from = module.instance_group_control_plane
|
||||
to = module.instance_group["control_plane_default"]
|
||||
}
|
||||
|
||||
// TODO(AB#3248): Remove this migration after we can assume that all existing clusters have been migrated.
|
||||
moved {
|
||||
from = module.instance_group_worker_nodes
|
||||
to = module.instance_group["worker_default"]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue