pulumi/pkg/backend
Joe Duffy dcb92a284a Add --esc-config flag to pulumi new
This change adds a flag to the `pulumi new` command, --esc-config,
which redirects all standard `pulumi config` commands to use ESC
rather than the typical stack config file behavior. This is just a
prototype and does some magic with respect to the naming convention
for environments as they relate to stacks, rather than storing some
metadata on the stack itself. It also immediately performs any
configuration changes via ESC, unlike the standard configuration
model whereby config changes are "staged" until the next `pulumi up`
and commit of the resulting stack YAML file into source control.

I also had the idea to create a hierarchy of environments when this
command is used: one org-wide one, then a project-wide one, and then
one per stack, each with the obvious parent/child relationship.
I didn't get to that just yet and it may very well be too much magic.

Nevertheless, this change achieves the very basic desired result of
making ESC back any and all configuration and secrets changes while
using the current CLI nouns and verbs as-is. (Note: I think there's
a bug with respect to secrets decryption...)
2024-05-14 20:50:57 -07:00
..
display Asset and Archive can have missing contents (#15736) 2024-03-21 12:32:26 +00:00
diy Support always qualifying stack names (#11081) (#15857) 2024-04-04 10:11:46 +00:00
filestate Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
httpstate Add --esc-config flag to pulumi new 2024-05-14 20:50:57 -07:00
state [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
apply.go turn on the golangci-lint exhaustive linter (#15028) 2024-01-17 16:50:41 +00:00
apply_test.go Make `engine.NewEvent` type safe (#14590) 2023-11-16 16:54:03 +00:00
backend.go Add --esc-config flag to pulumi new 2024-05-14 20:50:57 -07:00
backend_test.go Allow anything in resource names (#14107) 2023-11-20 08:59:00 +00:00
cancellation_scope.go Make `engine.NewEvent` type safe (#14590) 2023-11-16 16:54:03 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
errors.go Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
mock.go Add --esc-config flag to pulumi new 2024-05-14 20:50:57 -07:00
policypack.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
query.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
snapshot.go Validate snapshots from service on load (#14046) 2023-12-04 15:12:56 +00:00
snapshot_test.go Allows SKIP_CHECKPOINTS without EXPERIMENTAL (#15318) 2024-01-30 18:31:49 +00:00
stack.go Implement preview-only refresh (#15330) 2024-02-01 20:30:40 +00:00
updates.go [cli] Include config from ESC in `pulumi config` (#14560) 2023-11-21 10:44:45 +00:00
watch.go Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00