Skip to content

Commit

Permalink
fix controlplane migration case for the infrastructure resources (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
kon-angelo authored Aug 29, 2024
1 parent c95a2f1 commit aa3ebb9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/controller/infrastructure/actuator_migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ import (

// Migrate deletes only the ConfigMaps and Secrets of the Terraformer.
func (a *actuator) Migrate(ctx context.Context, log logr.Logger, infrastructure *extensionsv1alpha1.Infrastructure, _ *extensionscontroller.Cluster) error {
if infrastructure.Status.State != nil {
return nil // nothing to do if already using new flow without Terraformer
}
tf, err := newTerraformer(log, a.restConfig, aws.TerraformerPurposeInfra, infrastructure, a.disableProjectedTokenMount)
if err != nil {
return err
Expand Down

0 comments on commit aa3ebb9

Please sign in to comment.