Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tool(pulumi): support newer version 3.102.0 #6246

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/reference/providers/pulumi.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ providers:

The version of pulumi to use. Set to `null` to use whichever version of `pulumi` is on your PATH.

| Type | Allowed Values | Default | Required |
| -------- | ------------------------ | ---------- | -------- |
| `string` | "3.70.0", "3.64.0", null | `"3.70.0"` | Yes |
| Type | Allowed Values | Default | Required |
| -------- | ----------------------------------- | ---------- | -------- |
| `string` | "3.102.0", "3.70.0", "3.64.0", null | `"3.70.0"` | Yes |

### `providers[].previewDir`

Expand Down
65 changes: 64 additions & 1 deletion plugins/pulumi/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function pulumi(ctx: PluginContext, provider: PulumiProvider) {

export class GlobalPulumi extends CliWrapper {
protected override toolPath = "pulumi"

constructor() {
super({ name: "pulumi" })
}
Expand All @@ -57,6 +58,9 @@ export class GlobalPulumi extends CliWrapper {
}
}

const PULUMI_SEM_VER_3_102_0 = new SemVer("3.102.0")
const PULUMI_VERSION_3_102_0 = PULUMI_SEM_VER_3_102_0.version

const PULUMI_SEM_VER_3_70_0 = new SemVer("3.70.0")
const PULUMI_VERSION_3_70_0 = PULUMI_SEM_VER_3_70_0.version

Expand All @@ -72,12 +76,71 @@ function getPulumiToolDescription(semVer: SemVer) {
}

export const pulumiCliSpecs: PluginToolSpec[] = [
{
version: PULUMI_VERSION_3_102_0,
name: getPulumiToolName(PULUMI_SEM_VER_3_102_0),
description: getPulumiToolDescription(PULUMI_SEM_VER_3_102_0),
type: "binary",
_includeInGardenImage: true,
builds: [
{
platform: "darwin",
architecture: "amd64",
url: `https://github.com/pulumi/pulumi/releases/download/v${PULUMI_VERSION_3_102_0}/pulumi-v${PULUMI_VERSION_3_102_0}-darwin-x64.tar.gz`,
sha256: "84dbb8d43dab7197bc074a3ff7cb1dfb0b2a65960d5726199d68557491d347ff",
extract: {
format: "tar",
targetPath: "pulumi/pulumi",
},
},
{
platform: "darwin",
architecture: "arm64",
url: `https://github.com/pulumi/pulumi/releases/download/v${PULUMI_VERSION_3_102_0}/pulumi-v${PULUMI_VERSION_3_102_0}-darwin-arm64.tar.gz`,
sha256: "988e45d1f48ce521cbb8134583bc5d0c3b9bab7aa9a6b99c60316293fbce18de",
extract: {
format: "tar",
targetPath: "pulumi/pulumi",
},
},
{
platform: "linux",
architecture: "amd64",
url: `https://github.com/pulumi/pulumi/releases/download/v${PULUMI_VERSION_3_102_0}/pulumi-v${PULUMI_VERSION_3_102_0}-linux-x64.tar.gz`,
sha256: "b19b562b1d6ca2688bb1f83a037dc62d5283acd1ab1690878fd4d55a34beedb0",
extract: {
format: "tar",
targetPath: "pulumi/pulumi",
},
},
{
platform: "linux",
architecture: "arm64",
url: `https://github.com/pulumi/pulumi/releases/download/v${PULUMI_VERSION_3_102_0}/pulumi-v${PULUMI_VERSION_3_102_0}-linux-arm64.tar.gz`,
sha256: "59743eb222d13741f43c774fc1b089416f7457265e05416038e663225e0cb7c9",
extract: {
format: "tar",
targetPath: "pulumi/pulumi",
},
},
{
platform: "windows",
architecture: "amd64",
url: `https://github.com/pulumi/pulumi/releases/download/v${PULUMI_VERSION_3_102_0}/pulumi-v${PULUMI_VERSION_3_102_0}-windows-x64.zip`,
sha256: "2cf2ab3f85faeda8c3e69844ec8e395de304db2d72a8c850e7beed336fed46cf",
extract: {
format: "zip",
targetPath: "pulumi/bin/pulumi.exe",
},
},
],
},
{
version: PULUMI_VERSION_3_70_0,
name: getPulumiToolName(PULUMI_SEM_VER_3_70_0),
description: getPulumiToolDescription(PULUMI_SEM_VER_3_70_0),
type: "binary",
_includeInGardenImage: true,
_includeInGardenImage: false,
builds: [
{
platform: "darwin",
Expand Down