pulumi/pkg/backend
bors[bot] e57d82fd5b
Merge #12856
12856: Support 'pulumi:tags' config to set stack tags r=Frassle a=Frassle

<!--- 
Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. -->

Support a "pulumi:tags" config property to set the stacks tags on operations (e.g. up, refresh, etc).

Fixes https://github.com/pulumi/pulumi/issues/5004

Note that I've gone with a slightly different approach to #5004. The suggestion in that ticket was to add a new section "tags" to the yaml, but given that we probably want to allow setting tags per-project and per-stack with some way to merge them I figured it better to reuse normal config and benefit from https://github.com/pulumi/pulumi/issues/11547 when that's done.

## Checklist

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [x] I have added tests that prove my fix is effective or that my feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Cloud,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


Co-authored-by: Fraser Waters <fraser@pulumi.com>
2023-06-01 17:10:29 +00:00
..
display update snapshots with 'View in Browser' links 2023-06-01 13:55:36 +02:00
filestate Merge #12856 2023-06-01 17:10:29 +00:00
httpstate Merge #12856 2023-06-01 17:10:29 +00: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 Addressed feedback from Code Review 2023-04-13 15:04:53 -07:00
apply_test.go Add more detail to update display to indicate `retainOnDelete` usage. 2023-04-05 17:25:23 -07:00
backend.go Fix destroy without project file 2023-05-02 10:36:16 +01:00
backend_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
cancellation_scope.go Move cancellation_scope to backend 2023-05-09 13:01:42 +01:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
errors.go Add a link to docs for the 409 Conflict error message (#3207) 2019-09-10 13:25:08 -07:00
mock.go Fix destroy without project file 2023-05-02 10:36:16 +01: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 all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
snapshot.go pkg/backend: Prefer contract.Assertf over Assert 2023-02-21 15:13:16 -08:00
snapshot_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
stack.go Support 'pulumi:tags' config to set stack tags 2023-05-24 09:02:22 +01:00
updates.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
watch.go Don't pass a second SecretsProvider to backend.Watch 2023-05-08 20:38:40 +01:00