-
Notifications
You must be signed in to change notification settings - Fork 10.1k
PSS: Allow pluggable state store configuration to be stored in a plan file #37956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This helps with navigating ambiguity around the word backend. The new name should indicate that the value represents a `backend` block, not a more general interpretation of what a backend is.
…to a lack of data. Don't change it if pluggable state storage is in use.
…sing that data when creating a plan file.
…ly isn't valid for `stateStoreConfigState` to be nil I'm about 90% sure that backendConfigState being nil is ok <_<
… file with the expected state_store configuration data
radeksimko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions about edge cases in-line.
Co-authored-by: Radek Simko <[email protected]>
…d.Backend` is encountered when managing a state store
…backend config state to downstream logic. In future this should be simplified, either via refactoring or changes affecting the implied local backend
|
The equivalence tests failed. Please investigate here. |
|
The equivalence tests failed. Please investigate here. |
177d034 to
a52e51b
Compare
|
I accidentally pushed commits here exploring how to better handle the synthetic object (#37984) - I've just force pushed to remove those last 2 commits |
Context
The process of how data gets into a planfile created by a
plancommand is a little convoluted, so here is a diagram attempting to explain how it works. Note that the diagram explains how it works after the changes of this PR, so describes parallel backend- and state store-related fields in places, but broadly the sequence of events is unchanged.This PR
Follows after #37246, which began implementing use of pluggable state stores with planfiles.
planand use that in anapplycommand:plan: d0f8834stateStoreConfigStatePlanOutStateStorefield with a description of the state store's config.PlanOutStateStorefield can be used when writing the plan fileThis PR adds some test coverage of the new features in integration tests. There are no E2E tests in this PR and instead the stacked PR #37957 includes an E2E test that shows the full init-plan-apply workflow performed with a pluggable state store.
Target Release
1.15.x
Rollback Plan
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
CHANGELOG entry