Uh oh!
There was an error while loading. Please reload this page.
Move terraform.Load() to statemgmt.Load() - #3161
Conversation
878520f to
fd3c594Compare68cd7d2 to
99d2e3fCompare99d2e3f to
4eefba3Compare
93 failing tests:
|
fd3c594 to
cbe7fc9Compare4eefba3 to
ba86b34Compare| return "statemgmt.Load" | ||
| } | ||
| func (l *load) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnostics { |
There was a problem hiding this comment.
This is still TF-specific. I expected the StateToBundle function to move here, but I still keep separate mutators for the different deployment modes. Doesn't that make more sense?
There was a problem hiding this comment.
This PR is purely a move. The mutator will be refactored to handle both terraform and terranova case.
It's easier to have single mutator that handles both, less changes are needed in cmd/bundle/*.go
There was a problem hiding this comment.
Do you still want to keep the different implementations in different packages?
There was a problem hiding this comment.
The actual logic that converts tfstate or resources.json to neutral representation will leave in corresponding package. The mutator acts as aggregator, so it can take dependency on both terraform and terranova to call the right functions.
ba86b34 to
f3183b4Comparef3183b4 to
0f4fae1Compare0f4fae1 to
75d651fCompare75d651f to
a06ba9fComparePure move, no functional changes.
a06ba9f to
97f28f0Compare## Changes Move terraform.Load to statemgmt.Load Move terraform.TerraformToBundle to statemgmt.StateToBundle. Move related unit tests. Pure move, no functional changes. Stacked on top of #3134 ## Why Preparation for making it work with direct deployment.
Changes
Move terraform.Load to statemgmt.Load
Move terraform.TerraformToBundle to statemgmt.StateToBundle.
Move related unit tests.
Pure move, no functional changes.
Stacked on top of #3134
Why
Preparation for making it work with direct deployment.