From dbea8058a2933dffcfd8b32b297f38bd9abe7f1c Mon Sep 17 00:00:00 2001 From: Praneet Loke <1466314+praneetloke@users.noreply.github.com> Date: Wed, 2 Jun 2021 11:32:52 -0700 Subject: [PATCH] Bump the Pulumi Service API version header to 7 (#7193) * Version 7 indicates to the Pulumi Service that the CLI supports setting required headers for policy pack publishing * Add bumping the Pulumi Service API version to the PR checklist --- .github/PULL_REQUEST_TEMPLATE.md | 8 ++++++++ pkg/backend/httpstate/client/api.go | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 4ff22eef5..bcce92181 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -16,3 +16,11 @@ Fixes # (issue) User-facing changes require a CHANGELOG entry. --> - [ ] I have updated the [CHANGELOG-PENDING](https://github.com/pulumi/pulumi/blob/master/CHANGELOG_PENDING.md) file with my change + +- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version + diff --git a/pkg/backend/httpstate/client/api.go b/pkg/backend/httpstate/client/api.go index 0cf08c108..a11ae77f0 100644 --- a/pkg/backend/httpstate/client/api.go +++ b/pkg/backend/httpstate/client/api.go @@ -171,7 +171,7 @@ func pulumiAPICall(ctx context.Context, d diag.Sink, cloudAPI, method, path stri userAgent := fmt.Sprintf("pulumi-cli/1 (%s; %s)", version.Version, runtime.GOOS) req.Header.Set("User-Agent", userAgent) // Specify the specific API version we accept. - req.Header.Set("Accept", "application/vnd.pulumi+6") + req.Header.Set("Accept", "application/vnd.pulumi+7") // Apply credentials if provided. if tok.String() != "" {