-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This re-adds project support back to the filestate backend by implementing a new referenceStore: projectReferenceStore. We will use this reference store for all new filestate stores. Existing states will continue to use the legacyReferenceStore. To accomplish this, and to plan for the future, we introduce a 'meta.yaml' file inside the .pulumi directory. This file contains metadata about the storage state. Currently, this only holds a version number: # .pulumi/meta.yaml version: 1 Version 1 is the number we've chosen for the initial release of project support. If we ever need to make breaking changes to the storage protocol we can bump the format version. Notes: - Stack references produced by filestate will shorten to just the stack name if the project name for the stack matches the currently selected project. This required turning currentProject on localBackend into an atomic pointer because otherwise SetCurrentProject and localBackendReference.String may race. Extracted from #12134 Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
- Loading branch information
Showing
15 changed files
with
973 additions
and
39 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...0230128--backend-filestate--the-filestate-backend-now-supports-project-scoped-stacks.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
changes: | ||
- type: feat | ||
scope: backend/filestate | ||
description: | | ||
Add support for project-scoped stacks. | ||
Newly initialized storage will automatically use this mode. | ||
This mode needs write access to the root of the .pulumi directory; | ||
if you're using a cloud storage, be sure to update your ACLs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.