Skip to content

Commit

Permalink
add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Feb 19, 2024
1 parent 2f8d52c commit 708f615
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/pkg/agent/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,12 @@ func runElasticAgent(ctx context.Context, cancel context.CancelFunc, override cf
}

// the encrypted state does not exist but the unencrypted file does
err = migration.MigrateToEncryptedConfig(ctx, l, paths.AgentStateStoreYmlFile(), paths.AgentStateStoreFile())
err = migration.MigrateToEncryptedConfig(ctx, l,
paths.AgentStateStoreYmlFile(), // TODO: doubleckeck if we need it and
// how it interferes with the state store migration. Make an upgrade from:
// - 7.17 -> 8.13
// - 8.state_store.plain -> 8.state_store.enc
paths.AgentStateStoreFile())
if err != nil {
return errors.New(err, "error migrating agent state")
}
Expand Down

0 comments on commit 708f615

Please sign in to comment.