mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 14:26:23 -04:00
cli: manual AWS terraform state transitions
This commit is designed to be reverted in the future (AB#3248). Terraform does not implement moved blocks with dynamic targets: https://github.com/hashicorp/terraform/issues/31335 so we have to migrate the terraform state ourselves.
This commit is contained in:
parent
22ebdace43
commit
3edc1c3ebb
9 changed files with 183 additions and 6 deletions
|
@ -15,6 +15,7 @@ import (
|
|||
|
||||
"github.com/edgelesssys/constellation/v2/cli/internal/clusterid"
|
||||
"github.com/edgelesssys/constellation/v2/cli/internal/kubernetes"
|
||||
"github.com/edgelesssys/constellation/v2/cli/internal/terraform"
|
||||
"github.com/edgelesssys/constellation/v2/cli/internal/upgrade"
|
||||
"github.com/edgelesssys/constellation/v2/internal/attestation/variant"
|
||||
"github.com/edgelesssys/constellation/v2/internal/cloud/cloudprovider"
|
||||
|
@ -196,6 +197,12 @@ func (u stubUpgrader) ApplyTerraformMigrations(context.Context, file.Handler, up
|
|||
return u.applyTerraformErr
|
||||
}
|
||||
|
||||
// AddManualStateMigration is not used in this test.
|
||||
// TODO(AB#3248): remove this method together with the definition in the interfaces.
|
||||
func (u stubUpgrader) AddManualStateMigration(_ terraform.StateMigration) {
|
||||
panic("unused")
|
||||
}
|
||||
|
||||
type stubImageFetcher struct {
|
||||
fetchReferenceErr error
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue