pulumi/pkg/backend/httpstate
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
..
client [snapshot] Use a newer diff package 2023-05-16 12:33:30 -07:00
testdata [snapshot] Use a newer diff package 2023-05-16 12:33:30 -07:00
backend.go Support 'pulumi:tags' config to set stack tags 2023-05-24 09:02:22 +01:00
backend_test.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
console.go Add support for a PULUMI_CONSOLE_DOMAIN env var (#4410) 2020-04-17 11:50:00 -07:00
console_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
diffs.go [snapshot] Use a newer diff package 2023-05-16 12:33:30 -07:00
diffs_post_1.20.go [snapshot] Use a newer diff package 2023-05-16 12:33:30 -07:00
diffs_pre_1.20.go [snapshot] Use a newer diff package 2023-05-16 12:33:30 -07:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
policypack.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
snapshot.go [snapshot] Pool checkpoint buffers 2023-05-12 10:54:24 -07:00
snapshot_test.go [snapshot] Use a newer diff package 2023-05-16 12:33:30 -07:00
stack.go Make filestate.Snapshot lazy like httpstate 2023-05-24 08:24:04 +01:00
state.go [cli] Add an "open in browser" keybinding 2023-03-09 15:52:13 -08:00
token_source.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
token_source_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00