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
This commit is contained in:
parent
6ae6cc45b7
commit
dbea8058a2
8
.github/PULL_REQUEST_TEMPLATE.md
vendored
8
.github/PULL_REQUEST_TEMPLATE.md
vendored
|
@ -16,3 +16,11 @@ Fixes # (issue)
|
||||||
User-facing changes require a CHANGELOG entry.
|
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
|
- [ ] I have updated the [CHANGELOG-PENDING](https://github.com/pulumi/pulumi/blob/master/CHANGELOG_PENDING.md) file with my change
|
||||||
|
<!--
|
||||||
|
If the change(s) in this PR is a modification of an existing call to the Pulumi Service,
|
||||||
|
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 Service API version
|
||||||
|
<!-- @Pulumi employees: If yes, you must submit corresponding changes in the service repo. -->
|
||||||
|
|
|
@ -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)
|
userAgent := fmt.Sprintf("pulumi-cli/1 (%s; %s)", version.Version, runtime.GOOS)
|
||||||
req.Header.Set("User-Agent", userAgent)
|
req.Header.Set("User-Agent", userAgent)
|
||||||
// Specify the specific API version we accept.
|
// 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.
|
// Apply credentials if provided.
|
||||||
if tok.String() != "" {
|
if tok.String() != "" {
|
||||||
|
|
Loading…
Reference in a new issue