From bb1e1520e442b032435b58479c5ba71c5a333e71 Mon Sep 17 00:00:00 2001 From: Thomas Neil James Shadwell Date: Sun, 27 Oct 2024 13:57:50 -0700 Subject: [PATCH 1/7] Prep for using aider --- .../pulumi/plugin/crane}/.devcontainer | 0 .../pulumi/plugin/crane}/.devcontainer.json | 0 .../crane}/.github/actions/setup-tools/action.yml | 0 .../plugin/crane}/.github/workflows/makefile.yaml | 0 .../pulumi/plugin/crane}/.gitignore | 0 .../pulumi/plugin/crane}/.gitmodules | 0 .../pulumi/plugin/crane}/LICENSE | 0 .../pulumi/plugin/crane}/Makefile | 0 .../pulumi/plugin/crane}/README.md | 0 .../crane}/deployment-templates/.goreleaser.yml | 0 .../deployment-templates/README-DEPLOYMENT.md | 0 .../plugin/crane}/deployment-templates/release.yml | 0 .../pulumi/plugin/crane}/examples/dotnet/.gitignore | 0 .../pulumi/plugin/crane}/examples/dotnet/Program.cs | 0 .../plugin/crane}/examples/dotnet/Pulumi.yaml | 0 .../examples/dotnet/provider-xyz-native.csproj | 0 .../pulumi/plugin/crane}/examples/go/Pulumi.yaml | 0 .../pulumi/plugin/crane}/examples/go/go.mod | 0 .../pulumi/plugin/crane}/examples/go/main.go | 0 .../pulumi/plugin/crane}/examples/nodejs/.gitignore | 0 .../plugin/crane}/examples/nodejs/Pulumi.yaml | 0 .../pulumi/plugin/crane}/examples/nodejs/index.ts | 0 .../plugin/crane}/examples/nodejs/package.json | 0 .../plugin/crane}/examples/nodejs/tsconfig.json | 0 .../pulumi/plugin/crane}/examples/python/.gitignore | 0 .../plugin/crane}/examples/python/Pulumi.yaml | 0 .../plugin/crane}/examples/python/__main__.py | 0 .../plugin/crane}/examples/python/requirements.txt | 0 .../pulumi/plugin/crane}/examples/yaml/Pulumi.yaml | 0 .../pulumi/plugin/crane}/examples/yaml/README.md | 0 .../crane}/provider/cmd/pulumi-resource-xyz/main.go | 0 .../pulumi/plugin/crane}/provider/go.mod | 0 .../pulumi/plugin/crane}/provider/go.sum | 0 .../pulumi/plugin/crane}/provider/provider.go | 0 .../plugin/crane}/provider/randomComponent.go | 0 .../pulumi/plugin/crane}/provider/randomResource.go | 0 .../plugin/crane}/provider/randomResource_test.go | 0 .../pulumi/plugin/crane}/sdk/.gitignore | 0 .../plugin/crane}/sdk/dotnet/Config/Config.cs | 0 .../plugin/crane}/sdk/dotnet/Config/README.md | 0 .../pulumi/plugin/crane}/sdk/dotnet/Provider.cs | 0 .../plugin/crane}/sdk/dotnet/Pulumi.Xyz.csproj | 0 .../pulumi/plugin/crane}/sdk/dotnet/README.md | 0 .../pulumi/plugin/crane}/sdk/dotnet/Random.cs | 0 .../plugin/crane}/sdk/dotnet/RandomComponent.cs | 0 .../pulumi/plugin/crane}/sdk/dotnet/Utilities.cs | 0 .../pulumi/plugin/crane}/sdk/dotnet/logo.png | Bin .../plugin/crane}/sdk/dotnet/pulumi-plugin.json | 0 .../pulumi/plugin/crane}/sdk/dotnet/version.txt | 0 .../pulumi/plugin/crane}/sdk/go.mod | 0 .../pulumi/plugin/crane}/sdk/go.sum | 0 .../plugin/crane}/sdk/go/xyz/config/config.go | 0 .../pulumi/plugin/crane}/sdk/go/xyz/doc.go | 0 .../pulumi/plugin/crane}/sdk/go/xyz/init.go | 0 .../crane}/sdk/go/xyz/internal/pulumiUtilities.go | 0 .../crane}/sdk/go/xyz/internal/pulumiVersion.go | 0 .../pulumi/plugin/crane}/sdk/go/xyz/provider.go | 0 .../plugin/crane}/sdk/go/xyz/pulumi-plugin.json | 0 .../pulumi/plugin/crane}/sdk/go/xyz/random.go | 0 .../plugin/crane}/sdk/go/xyz/randomComponent.go | 0 .../pulumi/plugin/crane}/sdk/nodejs/README.md | 0 .../pulumi/plugin/crane}/sdk/nodejs/config/index.ts | 0 .../pulumi/plugin/crane}/sdk/nodejs/config/vars.ts | 0 .../pulumi/plugin/crane}/sdk/nodejs/index.ts | 0 .../pulumi/plugin/crane}/sdk/nodejs/package.json | 0 .../pulumi/plugin/crane}/sdk/nodejs/provider.ts | 0 .../pulumi/plugin/crane}/sdk/nodejs/random.ts | 0 .../plugin/crane}/sdk/nodejs/randomComponent.ts | 0 .../pulumi/plugin/crane}/sdk/nodejs/tsconfig.json | 0 .../pulumi/plugin/crane}/sdk/nodejs/utilities.ts | 0 .../pulumi/plugin/crane}/sdk/python/README.md | 0 .../plugin/crane}/sdk/python/pulumi_xyz/README.md | 0 .../plugin/crane}/sdk/python/pulumi_xyz/__init__.py | 0 .../crane}/sdk/python/pulumi_xyz/_utilities.py | 0 .../crane}/sdk/python/pulumi_xyz/config/__init__.py | 0 .../sdk/python/pulumi_xyz/config/__init__.pyi | 0 .../crane}/sdk/python/pulumi_xyz/config/vars.py | 0 .../plugin/crane}/sdk/python/pulumi_xyz/provider.py | 0 .../crane}/sdk/python/pulumi_xyz/pulumi-plugin.json | 0 .../plugin/crane}/sdk/python/pulumi_xyz/py.typed | 0 .../plugin/crane}/sdk/python/pulumi_xyz/random.py | 0 .../sdk/python/pulumi_xyz/random_component.py | 0 .../pulumi/plugin/crane}/sdk/python/setup.py | 0 .../pulumi/plugin/crane}/tests/go.mod | 0 .../pulumi/plugin/crane}/tests/go.sum | 0 .../pulumi/plugin/crane}/tests/provider_test.go | 0 86 files changed, 0 insertions(+), 0 deletions(-) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/.devcontainer (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/.devcontainer.json (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/.github/actions/setup-tools/action.yml (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/.github/workflows/makefile.yaml (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/.gitignore (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/.gitmodules (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/LICENSE (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/Makefile (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/README.md (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/deployment-templates/.goreleaser.yml (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/deployment-templates/README-DEPLOYMENT.md (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/deployment-templates/release.yml (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/dotnet/.gitignore (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/dotnet/Program.cs (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/dotnet/Pulumi.yaml (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/dotnet/provider-xyz-native.csproj (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/go/Pulumi.yaml (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/go/go.mod (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/go/main.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/nodejs/.gitignore (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/nodejs/Pulumi.yaml (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/nodejs/index.ts (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/nodejs/package.json (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/nodejs/tsconfig.json (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/python/.gitignore (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/python/Pulumi.yaml (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/python/__main__.py (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/python/requirements.txt (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/yaml/Pulumi.yaml (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/examples/yaml/README.md (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/provider/cmd/pulumi-resource-xyz/main.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/provider/go.mod (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/provider/go.sum (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/provider/provider.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/provider/randomComponent.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/provider/randomResource.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/provider/randomResource_test.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/.gitignore (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/dotnet/Config/Config.cs (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/dotnet/Config/README.md (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/dotnet/Provider.cs (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/dotnet/Pulumi.Xyz.csproj (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/dotnet/README.md (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/dotnet/Random.cs (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/dotnet/RandomComponent.cs (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/dotnet/Utilities.cs (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/dotnet/logo.png (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/dotnet/pulumi-plugin.json (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/dotnet/version.txt (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/go.mod (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/go.sum (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/go/xyz/config/config.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/go/xyz/doc.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/go/xyz/init.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/go/xyz/internal/pulumiUtilities.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/go/xyz/internal/pulumiVersion.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/go/xyz/provider.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/go/xyz/pulumi-plugin.json (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/go/xyz/random.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/go/xyz/randomComponent.go (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/nodejs/README.md (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/nodejs/config/index.ts (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/nodejs/config/vars.ts (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/nodejs/index.ts (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/nodejs/package.json (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/nodejs/provider.ts (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/nodejs/random.ts (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/nodejs/randomComponent.ts (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/nodejs/tsconfig.json (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/nodejs/utilities.ts (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/README.md (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/pulumi_xyz/README.md (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/pulumi_xyz/__init__.py (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/pulumi_xyz/_utilities.py (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/pulumi_xyz/config/__init__.py (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/pulumi_xyz/config/__init__.pyi (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/pulumi_xyz/config/vars.py (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/pulumi_xyz/provider.py (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/pulumi_xyz/pulumi-plugin.json (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/pulumi_xyz/py.typed (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/pulumi_xyz/random.py (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/pulumi_xyz/random_component.py (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/sdk/python/setup.py (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/tests/go.mod (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/tests/go.sum (100%) rename {third_party/pulumi-component-provider-boilerplate => go/pulumi/plugin/crane}/tests/provider_test.go (100%) diff --git a/third_party/pulumi-component-provider-boilerplate/.devcontainer b/go/pulumi/plugin/crane/.devcontainer similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/.devcontainer rename to go/pulumi/plugin/crane/.devcontainer diff --git a/third_party/pulumi-component-provider-boilerplate/.devcontainer.json b/go/pulumi/plugin/crane/.devcontainer.json similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/.devcontainer.json rename to go/pulumi/plugin/crane/.devcontainer.json diff --git a/third_party/pulumi-component-provider-boilerplate/.github/actions/setup-tools/action.yml b/go/pulumi/plugin/crane/.github/actions/setup-tools/action.yml similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/.github/actions/setup-tools/action.yml rename to go/pulumi/plugin/crane/.github/actions/setup-tools/action.yml diff --git a/third_party/pulumi-component-provider-boilerplate/.github/workflows/makefile.yaml b/go/pulumi/plugin/crane/.github/workflows/makefile.yaml similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/.github/workflows/makefile.yaml rename to go/pulumi/plugin/crane/.github/workflows/makefile.yaml diff --git a/third_party/pulumi-component-provider-boilerplate/.gitignore b/go/pulumi/plugin/crane/.gitignore similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/.gitignore rename to go/pulumi/plugin/crane/.gitignore diff --git a/third_party/pulumi-component-provider-boilerplate/.gitmodules b/go/pulumi/plugin/crane/.gitmodules similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/.gitmodules rename to go/pulumi/plugin/crane/.gitmodules diff --git a/third_party/pulumi-component-provider-boilerplate/LICENSE b/go/pulumi/plugin/crane/LICENSE similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/LICENSE rename to go/pulumi/plugin/crane/LICENSE diff --git a/third_party/pulumi-component-provider-boilerplate/Makefile b/go/pulumi/plugin/crane/Makefile similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/Makefile rename to go/pulumi/plugin/crane/Makefile diff --git a/third_party/pulumi-component-provider-boilerplate/README.md b/go/pulumi/plugin/crane/README.md similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/README.md rename to go/pulumi/plugin/crane/README.md diff --git a/third_party/pulumi-component-provider-boilerplate/deployment-templates/.goreleaser.yml b/go/pulumi/plugin/crane/deployment-templates/.goreleaser.yml similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/deployment-templates/.goreleaser.yml rename to go/pulumi/plugin/crane/deployment-templates/.goreleaser.yml diff --git a/third_party/pulumi-component-provider-boilerplate/deployment-templates/README-DEPLOYMENT.md b/go/pulumi/plugin/crane/deployment-templates/README-DEPLOYMENT.md similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/deployment-templates/README-DEPLOYMENT.md rename to go/pulumi/plugin/crane/deployment-templates/README-DEPLOYMENT.md diff --git a/third_party/pulumi-component-provider-boilerplate/deployment-templates/release.yml b/go/pulumi/plugin/crane/deployment-templates/release.yml similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/deployment-templates/release.yml rename to go/pulumi/plugin/crane/deployment-templates/release.yml diff --git a/third_party/pulumi-component-provider-boilerplate/examples/dotnet/.gitignore b/go/pulumi/plugin/crane/examples/dotnet/.gitignore similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/dotnet/.gitignore rename to go/pulumi/plugin/crane/examples/dotnet/.gitignore diff --git a/third_party/pulumi-component-provider-boilerplate/examples/dotnet/Program.cs b/go/pulumi/plugin/crane/examples/dotnet/Program.cs similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/dotnet/Program.cs rename to go/pulumi/plugin/crane/examples/dotnet/Program.cs diff --git a/third_party/pulumi-component-provider-boilerplate/examples/dotnet/Pulumi.yaml b/go/pulumi/plugin/crane/examples/dotnet/Pulumi.yaml similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/dotnet/Pulumi.yaml rename to go/pulumi/plugin/crane/examples/dotnet/Pulumi.yaml diff --git a/third_party/pulumi-component-provider-boilerplate/examples/dotnet/provider-xyz-native.csproj b/go/pulumi/plugin/crane/examples/dotnet/provider-xyz-native.csproj similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/dotnet/provider-xyz-native.csproj rename to go/pulumi/plugin/crane/examples/dotnet/provider-xyz-native.csproj diff --git a/third_party/pulumi-component-provider-boilerplate/examples/go/Pulumi.yaml b/go/pulumi/plugin/crane/examples/go/Pulumi.yaml similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/go/Pulumi.yaml rename to go/pulumi/plugin/crane/examples/go/Pulumi.yaml diff --git a/third_party/pulumi-component-provider-boilerplate/examples/go/go.mod b/go/pulumi/plugin/crane/examples/go/go.mod similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/go/go.mod rename to go/pulumi/plugin/crane/examples/go/go.mod diff --git a/third_party/pulumi-component-provider-boilerplate/examples/go/main.go b/go/pulumi/plugin/crane/examples/go/main.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/go/main.go rename to go/pulumi/plugin/crane/examples/go/main.go diff --git a/third_party/pulumi-component-provider-boilerplate/examples/nodejs/.gitignore b/go/pulumi/plugin/crane/examples/nodejs/.gitignore similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/nodejs/.gitignore rename to go/pulumi/plugin/crane/examples/nodejs/.gitignore diff --git a/third_party/pulumi-component-provider-boilerplate/examples/nodejs/Pulumi.yaml b/go/pulumi/plugin/crane/examples/nodejs/Pulumi.yaml similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/nodejs/Pulumi.yaml rename to go/pulumi/plugin/crane/examples/nodejs/Pulumi.yaml diff --git a/third_party/pulumi-component-provider-boilerplate/examples/nodejs/index.ts b/go/pulumi/plugin/crane/examples/nodejs/index.ts similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/nodejs/index.ts rename to go/pulumi/plugin/crane/examples/nodejs/index.ts diff --git a/third_party/pulumi-component-provider-boilerplate/examples/nodejs/package.json b/go/pulumi/plugin/crane/examples/nodejs/package.json similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/nodejs/package.json rename to go/pulumi/plugin/crane/examples/nodejs/package.json diff --git a/third_party/pulumi-component-provider-boilerplate/examples/nodejs/tsconfig.json b/go/pulumi/plugin/crane/examples/nodejs/tsconfig.json similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/nodejs/tsconfig.json rename to go/pulumi/plugin/crane/examples/nodejs/tsconfig.json diff --git a/third_party/pulumi-component-provider-boilerplate/examples/python/.gitignore b/go/pulumi/plugin/crane/examples/python/.gitignore similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/python/.gitignore rename to go/pulumi/plugin/crane/examples/python/.gitignore diff --git a/third_party/pulumi-component-provider-boilerplate/examples/python/Pulumi.yaml b/go/pulumi/plugin/crane/examples/python/Pulumi.yaml similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/python/Pulumi.yaml rename to go/pulumi/plugin/crane/examples/python/Pulumi.yaml diff --git a/third_party/pulumi-component-provider-boilerplate/examples/python/__main__.py b/go/pulumi/plugin/crane/examples/python/__main__.py similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/python/__main__.py rename to go/pulumi/plugin/crane/examples/python/__main__.py diff --git a/third_party/pulumi-component-provider-boilerplate/examples/python/requirements.txt b/go/pulumi/plugin/crane/examples/python/requirements.txt similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/python/requirements.txt rename to go/pulumi/plugin/crane/examples/python/requirements.txt diff --git a/third_party/pulumi-component-provider-boilerplate/examples/yaml/Pulumi.yaml b/go/pulumi/plugin/crane/examples/yaml/Pulumi.yaml similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/yaml/Pulumi.yaml rename to go/pulumi/plugin/crane/examples/yaml/Pulumi.yaml diff --git a/third_party/pulumi-component-provider-boilerplate/examples/yaml/README.md b/go/pulumi/plugin/crane/examples/yaml/README.md similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/examples/yaml/README.md rename to go/pulumi/plugin/crane/examples/yaml/README.md diff --git a/third_party/pulumi-component-provider-boilerplate/provider/cmd/pulumi-resource-xyz/main.go b/go/pulumi/plugin/crane/provider/cmd/pulumi-resource-xyz/main.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/provider/cmd/pulumi-resource-xyz/main.go rename to go/pulumi/plugin/crane/provider/cmd/pulumi-resource-xyz/main.go diff --git a/third_party/pulumi-component-provider-boilerplate/provider/go.mod b/go/pulumi/plugin/crane/provider/go.mod similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/provider/go.mod rename to go/pulumi/plugin/crane/provider/go.mod diff --git a/third_party/pulumi-component-provider-boilerplate/provider/go.sum b/go/pulumi/plugin/crane/provider/go.sum similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/provider/go.sum rename to go/pulumi/plugin/crane/provider/go.sum diff --git a/third_party/pulumi-component-provider-boilerplate/provider/provider.go b/go/pulumi/plugin/crane/provider/provider.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/provider/provider.go rename to go/pulumi/plugin/crane/provider/provider.go diff --git a/third_party/pulumi-component-provider-boilerplate/provider/randomComponent.go b/go/pulumi/plugin/crane/provider/randomComponent.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/provider/randomComponent.go rename to go/pulumi/plugin/crane/provider/randomComponent.go diff --git a/third_party/pulumi-component-provider-boilerplate/provider/randomResource.go b/go/pulumi/plugin/crane/provider/randomResource.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/provider/randomResource.go rename to go/pulumi/plugin/crane/provider/randomResource.go diff --git a/third_party/pulumi-component-provider-boilerplate/provider/randomResource_test.go b/go/pulumi/plugin/crane/provider/randomResource_test.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/provider/randomResource_test.go rename to go/pulumi/plugin/crane/provider/randomResource_test.go diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/.gitignore b/go/pulumi/plugin/crane/sdk/.gitignore similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/.gitignore rename to go/pulumi/plugin/crane/sdk/.gitignore diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/dotnet/Config/Config.cs b/go/pulumi/plugin/crane/sdk/dotnet/Config/Config.cs similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/dotnet/Config/Config.cs rename to go/pulumi/plugin/crane/sdk/dotnet/Config/Config.cs diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/dotnet/Config/README.md b/go/pulumi/plugin/crane/sdk/dotnet/Config/README.md similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/dotnet/Config/README.md rename to go/pulumi/plugin/crane/sdk/dotnet/Config/README.md diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/dotnet/Provider.cs b/go/pulumi/plugin/crane/sdk/dotnet/Provider.cs similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/dotnet/Provider.cs rename to go/pulumi/plugin/crane/sdk/dotnet/Provider.cs diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/dotnet/Pulumi.Xyz.csproj b/go/pulumi/plugin/crane/sdk/dotnet/Pulumi.Xyz.csproj similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/dotnet/Pulumi.Xyz.csproj rename to go/pulumi/plugin/crane/sdk/dotnet/Pulumi.Xyz.csproj diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/dotnet/README.md b/go/pulumi/plugin/crane/sdk/dotnet/README.md similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/dotnet/README.md rename to go/pulumi/plugin/crane/sdk/dotnet/README.md diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/dotnet/Random.cs b/go/pulumi/plugin/crane/sdk/dotnet/Random.cs similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/dotnet/Random.cs rename to go/pulumi/plugin/crane/sdk/dotnet/Random.cs diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/dotnet/RandomComponent.cs b/go/pulumi/plugin/crane/sdk/dotnet/RandomComponent.cs similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/dotnet/RandomComponent.cs rename to go/pulumi/plugin/crane/sdk/dotnet/RandomComponent.cs diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/dotnet/Utilities.cs b/go/pulumi/plugin/crane/sdk/dotnet/Utilities.cs similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/dotnet/Utilities.cs rename to go/pulumi/plugin/crane/sdk/dotnet/Utilities.cs diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/dotnet/logo.png b/go/pulumi/plugin/crane/sdk/dotnet/logo.png similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/dotnet/logo.png rename to go/pulumi/plugin/crane/sdk/dotnet/logo.png diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/dotnet/pulumi-plugin.json b/go/pulumi/plugin/crane/sdk/dotnet/pulumi-plugin.json similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/dotnet/pulumi-plugin.json rename to go/pulumi/plugin/crane/sdk/dotnet/pulumi-plugin.json diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/dotnet/version.txt b/go/pulumi/plugin/crane/sdk/dotnet/version.txt similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/dotnet/version.txt rename to go/pulumi/plugin/crane/sdk/dotnet/version.txt diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/go.mod b/go/pulumi/plugin/crane/sdk/go.mod similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/go.mod rename to go/pulumi/plugin/crane/sdk/go.mod diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/go.sum b/go/pulumi/plugin/crane/sdk/go.sum similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/go.sum rename to go/pulumi/plugin/crane/sdk/go.sum diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/config/config.go b/go/pulumi/plugin/crane/sdk/go/xyz/config/config.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/config/config.go rename to go/pulumi/plugin/crane/sdk/go/xyz/config/config.go diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/doc.go b/go/pulumi/plugin/crane/sdk/go/xyz/doc.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/doc.go rename to go/pulumi/plugin/crane/sdk/go/xyz/doc.go diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/init.go b/go/pulumi/plugin/crane/sdk/go/xyz/init.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/init.go rename to go/pulumi/plugin/crane/sdk/go/xyz/init.go diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/internal/pulumiUtilities.go b/go/pulumi/plugin/crane/sdk/go/xyz/internal/pulumiUtilities.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/internal/pulumiUtilities.go rename to go/pulumi/plugin/crane/sdk/go/xyz/internal/pulumiUtilities.go diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/internal/pulumiVersion.go b/go/pulumi/plugin/crane/sdk/go/xyz/internal/pulumiVersion.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/internal/pulumiVersion.go rename to go/pulumi/plugin/crane/sdk/go/xyz/internal/pulumiVersion.go diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/provider.go b/go/pulumi/plugin/crane/sdk/go/xyz/provider.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/provider.go rename to go/pulumi/plugin/crane/sdk/go/xyz/provider.go diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/pulumi-plugin.json b/go/pulumi/plugin/crane/sdk/go/xyz/pulumi-plugin.json similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/pulumi-plugin.json rename to go/pulumi/plugin/crane/sdk/go/xyz/pulumi-plugin.json diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/random.go b/go/pulumi/plugin/crane/sdk/go/xyz/random.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/random.go rename to go/pulumi/plugin/crane/sdk/go/xyz/random.go diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/randomComponent.go b/go/pulumi/plugin/crane/sdk/go/xyz/randomComponent.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/go/xyz/randomComponent.go rename to go/pulumi/plugin/crane/sdk/go/xyz/randomComponent.go diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/nodejs/README.md b/go/pulumi/plugin/crane/sdk/nodejs/README.md similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/nodejs/README.md rename to go/pulumi/plugin/crane/sdk/nodejs/README.md diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/nodejs/config/index.ts b/go/pulumi/plugin/crane/sdk/nodejs/config/index.ts similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/nodejs/config/index.ts rename to go/pulumi/plugin/crane/sdk/nodejs/config/index.ts diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/nodejs/config/vars.ts b/go/pulumi/plugin/crane/sdk/nodejs/config/vars.ts similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/nodejs/config/vars.ts rename to go/pulumi/plugin/crane/sdk/nodejs/config/vars.ts diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/nodejs/index.ts b/go/pulumi/plugin/crane/sdk/nodejs/index.ts similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/nodejs/index.ts rename to go/pulumi/plugin/crane/sdk/nodejs/index.ts diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/nodejs/package.json b/go/pulumi/plugin/crane/sdk/nodejs/package.json similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/nodejs/package.json rename to go/pulumi/plugin/crane/sdk/nodejs/package.json diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/nodejs/provider.ts b/go/pulumi/plugin/crane/sdk/nodejs/provider.ts similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/nodejs/provider.ts rename to go/pulumi/plugin/crane/sdk/nodejs/provider.ts diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/nodejs/random.ts b/go/pulumi/plugin/crane/sdk/nodejs/random.ts similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/nodejs/random.ts rename to go/pulumi/plugin/crane/sdk/nodejs/random.ts diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/nodejs/randomComponent.ts b/go/pulumi/plugin/crane/sdk/nodejs/randomComponent.ts similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/nodejs/randomComponent.ts rename to go/pulumi/plugin/crane/sdk/nodejs/randomComponent.ts diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/nodejs/tsconfig.json b/go/pulumi/plugin/crane/sdk/nodejs/tsconfig.json similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/nodejs/tsconfig.json rename to go/pulumi/plugin/crane/sdk/nodejs/tsconfig.json diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/nodejs/utilities.ts b/go/pulumi/plugin/crane/sdk/nodejs/utilities.ts similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/nodejs/utilities.ts rename to go/pulumi/plugin/crane/sdk/nodejs/utilities.ts diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/README.md b/go/pulumi/plugin/crane/sdk/python/README.md similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/README.md rename to go/pulumi/plugin/crane/sdk/python/README.md diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/README.md b/go/pulumi/plugin/crane/sdk/python/pulumi_xyz/README.md similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/README.md rename to go/pulumi/plugin/crane/sdk/python/pulumi_xyz/README.md diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/__init__.py b/go/pulumi/plugin/crane/sdk/python/pulumi_xyz/__init__.py similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/__init__.py rename to go/pulumi/plugin/crane/sdk/python/pulumi_xyz/__init__.py diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/_utilities.py b/go/pulumi/plugin/crane/sdk/python/pulumi_xyz/_utilities.py similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/_utilities.py rename to go/pulumi/plugin/crane/sdk/python/pulumi_xyz/_utilities.py diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/config/__init__.py b/go/pulumi/plugin/crane/sdk/python/pulumi_xyz/config/__init__.py similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/config/__init__.py rename to go/pulumi/plugin/crane/sdk/python/pulumi_xyz/config/__init__.py diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/config/__init__.pyi b/go/pulumi/plugin/crane/sdk/python/pulumi_xyz/config/__init__.pyi similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/config/__init__.pyi rename to go/pulumi/plugin/crane/sdk/python/pulumi_xyz/config/__init__.pyi diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/config/vars.py b/go/pulumi/plugin/crane/sdk/python/pulumi_xyz/config/vars.py similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/config/vars.py rename to go/pulumi/plugin/crane/sdk/python/pulumi_xyz/config/vars.py diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/provider.py b/go/pulumi/plugin/crane/sdk/python/pulumi_xyz/provider.py similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/provider.py rename to go/pulumi/plugin/crane/sdk/python/pulumi_xyz/provider.py diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/pulumi-plugin.json b/go/pulumi/plugin/crane/sdk/python/pulumi_xyz/pulumi-plugin.json similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/pulumi-plugin.json rename to go/pulumi/plugin/crane/sdk/python/pulumi_xyz/pulumi-plugin.json diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/py.typed b/go/pulumi/plugin/crane/sdk/python/pulumi_xyz/py.typed similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/py.typed rename to go/pulumi/plugin/crane/sdk/python/pulumi_xyz/py.typed diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/random.py b/go/pulumi/plugin/crane/sdk/python/pulumi_xyz/random.py similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/random.py rename to go/pulumi/plugin/crane/sdk/python/pulumi_xyz/random.py diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/random_component.py b/go/pulumi/plugin/crane/sdk/python/pulumi_xyz/random_component.py similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/pulumi_xyz/random_component.py rename to go/pulumi/plugin/crane/sdk/python/pulumi_xyz/random_component.py diff --git a/third_party/pulumi-component-provider-boilerplate/sdk/python/setup.py b/go/pulumi/plugin/crane/sdk/python/setup.py similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/sdk/python/setup.py rename to go/pulumi/plugin/crane/sdk/python/setup.py diff --git a/third_party/pulumi-component-provider-boilerplate/tests/go.mod b/go/pulumi/plugin/crane/tests/go.mod similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/tests/go.mod rename to go/pulumi/plugin/crane/tests/go.mod diff --git a/third_party/pulumi-component-provider-boilerplate/tests/go.sum b/go/pulumi/plugin/crane/tests/go.sum similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/tests/go.sum rename to go/pulumi/plugin/crane/tests/go.sum diff --git a/third_party/pulumi-component-provider-boilerplate/tests/provider_test.go b/go/pulumi/plugin/crane/tests/provider_test.go similarity index 100% rename from third_party/pulumi-component-provider-boilerplate/tests/provider_test.go rename to go/pulumi/plugin/crane/tests/provider_test.go From 70fb9938c48ef6ddf6714f65c744af329ae3e5b0 Mon Sep 17 00:00:00 2001 From: "Thomas Neil James Shadwell (aider)" Date: Sun, 27 Oct 2024 14:03:57 -0700 Subject: [PATCH 2/7] feat: Initialize Pulumi provider for crane container controller in Go --- go/pulumi/plugin/crane/provider/go.mod | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/go/pulumi/plugin/crane/provider/go.mod b/go/pulumi/plugin/crane/provider/go.mod index 7475f6ca2f..e56f984fdb 100644 --- a/go/pulumi/plugin/crane/provider/go.mod +++ b/go/pulumi/plugin/crane/provider/go.mod @@ -103,3 +103,10 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect lukechampine.com/frand v1.4.2 // indirect ) +module github.com/yourorg/crane-provider + +go 1.21 + +require ( + github.com/pulumi/pulumi/sdk/v3 v3.0.0 +) From 7252efc8c3003d1aba9d0e694a2a0f1dd44841ea Mon Sep 17 00:00:00 2001 From: "Thomas Neil James Shadwell (aider)" Date: Sun, 27 Oct 2024 14:04:40 -0700 Subject: [PATCH 3/7] feat: Set up initial structure for Pulumi provider "crane" --- go/pulumi/plugin/crane/provider/BUILD.bazel | 14 ++++++++++++++ go/pulumi/plugin/crane/provider/go.mod | 7 +++++++ go/pulumi/plugin/crane/provider/main.go | 12 ++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 go/pulumi/plugin/crane/provider/BUILD.bazel create mode 100644 go/pulumi/plugin/crane/provider/main.go diff --git a/go/pulumi/plugin/crane/provider/BUILD.bazel b/go/pulumi/plugin/crane/provider/BUILD.bazel new file mode 100644 index 0000000000..9e698e763f --- /dev/null +++ b/go/pulumi/plugin/crane/provider/BUILD.bazel @@ -0,0 +1,14 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") + +go_library( + name = "provider_lib", + srcs = ["main.go"], + deps = [ + "@com_github_pulumi_pulumi//sdk/v3/go/pulumi", + ], +) + +go_binary( + name = "provider", + embed = [":provider_lib"], +) diff --git a/go/pulumi/plugin/crane/provider/go.mod b/go/pulumi/plugin/crane/provider/go.mod index e56f984fdb..5f07a4015f 100644 --- a/go/pulumi/plugin/crane/provider/go.mod +++ b/go/pulumi/plugin/crane/provider/go.mod @@ -110,3 +110,10 @@ go 1.21 require ( github.com/pulumi/pulumi/sdk/v3 v3.0.0 ) +module github.com/yourorg/crane-provider + +go 1.21 + +require ( + github.com/pulumi/pulumi/sdk/v3 v3.0.0 +) diff --git a/go/pulumi/plugin/crane/provider/main.go b/go/pulumi/plugin/crane/provider/main.go new file mode 100644 index 0000000000..726b93a30f --- /dev/null +++ b/go/pulumi/plugin/crane/provider/main.go @@ -0,0 +1,12 @@ +package main + +import ( + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +func main() { + pulumi.Run(func(ctx *pulumi.Context) error { + // Implement the provider logic here + return nil + }) +} From e9d12b950634892afe041e225f7a98cc4ca503ad Mon Sep 17 00:00:00 2001 From: "Thomas Neil James Shadwell (aider)" Date: Sun, 27 Oct 2024 14:06:37 -0700 Subject: [PATCH 4/7] feat: Update Go module and main file for Pulumi provider integration --- go/pulumi/plugin/crane/provider/go.mod | 108 ------------------------ go/pulumi/plugin/crane/provider/main.go | 8 +- 2 files changed, 3 insertions(+), 113 deletions(-) diff --git a/go/pulumi/plugin/crane/provider/go.mod b/go/pulumi/plugin/crane/provider/go.mod index 5f07a4015f..9a94c4f5df 100644 --- a/go/pulumi/plugin/crane/provider/go.mod +++ b/go/pulumi/plugin/crane/provider/go.mod @@ -2,8 +2,6 @@ module github.com/pulumi/pulumi-xyz/provider go 1.22 -toolchain go1.23.2 - require ( github.com/blang/semver v3.5.1+incompatible github.com/pulumi/pulumi-go-provider v0.23.0 @@ -11,109 +9,3 @@ require ( github.com/pulumi/pulumi/sdk/v3 v3.136.1 github.com/stretchr/testify v1.9.0 ) - -require ( - dario.cat/mergo v1.0.0 // indirect - github.com/BurntSushi/toml v1.2.1 // indirect - github.com/Microsoft/go-winio v0.6.1 // indirect - github.com/ProtonMail/go-crypto v1.0.0 // indirect - github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect - github.com/agext/levenshtein v1.2.3 // indirect - github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect - github.com/atotto/clipboard v0.1.4 // indirect - github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect - github.com/charmbracelet/bubbles v0.16.1 // indirect - github.com/charmbracelet/bubbletea v0.25.0 // indirect - github.com/charmbracelet/lipgloss v0.7.1 // indirect - github.com/cheggaaa/pb v1.0.29 // indirect - github.com/cloudflare/circl v1.3.7 // indirect - github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect - github.com/cyphar/filepath-securejoin v0.2.4 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/djherbis/times v1.5.0 // indirect - github.com/edsrzf/mmap-go v1.1.0 // indirect - github.com/emirpasic/gods v1.18.1 // indirect - github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect - github.com/go-git/go-billy/v5 v5.5.0 // indirect - github.com/go-git/go-git/v5 v5.12.0 // indirect - github.com/gofrs/uuid v4.3.1+incompatible // indirect - github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.0 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect - github.com/hashicorp/errwrap v1.1.0 // indirect - github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/hcl/v2 v2.18.0 // indirect - github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect - github.com/kevinburke/ssh_config v1.2.0 // indirect - github.com/lucasb-eyer/go-colorful v1.2.0 // indirect - github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mattn/go-localereader v0.0.1 // indirect - github.com/mattn/go-runewidth v0.0.15 // indirect - github.com/mitchellh/go-ps v1.0.0 // indirect - github.com/mitchellh/go-wordwrap v1.0.1 // indirect - github.com/mitchellh/mapstructure v1.5.0 // indirect - github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect - github.com/muesli/cancelreader v0.2.2 // indirect - github.com/muesli/reflow v0.3.0 // indirect - github.com/muesli/termenv v0.15.2 // indirect - github.com/natefinch/atomic v1.0.1 // indirect - github.com/opentracing/basictracer-go v1.1.0 // indirect - github.com/opentracing/opentracing-go v1.2.0 // indirect - github.com/pgavlin/fx v0.1.6 // indirect - github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 // indirect - github.com/pjbgf/sha1cd v0.3.0 // indirect - github.com/pkg/errors v0.9.1 // indirect - github.com/pkg/term v1.1.0 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.10.0 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.134.0 // indirect - github.com/rivo/uniseg v0.4.4 // indirect - github.com/rogpeppe/go-internal v1.12.0 // indirect - github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect - github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect - github.com/segmentio/asm v1.2.0 // indirect - github.com/segmentio/encoding v0.3.6 // indirect - github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect - github.com/skeema/knownhosts v1.2.2 // indirect - github.com/spf13/cobra v1.8.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect - github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect - github.com/uber/jaeger-lib v2.4.1+incompatible // indirect - github.com/xanzy/ssh-agent v0.3.3 // indirect - github.com/zclconf/go-cty v1.14.0 // indirect - go.uber.org/atomic v1.11.0 // indirect - golang.org/x/crypto v0.25.0 // indirect - golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/mod v0.18.0 // indirect - golang.org/x/net v0.27.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.22.0 // indirect - golang.org/x/term v0.22.0 // indirect - golang.org/x/text v0.16.0 // indirect - golang.org/x/tools v0.22.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240415180920-8c6c420018be // indirect - google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.33.0 // indirect - gopkg.in/warnings.v0 v0.1.2 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect - lukechampine.com/frand v1.4.2 // indirect -) -module github.com/yourorg/crane-provider - -go 1.21 - -require ( - github.com/pulumi/pulumi/sdk/v3 v3.0.0 -) -module github.com/yourorg/crane-provider - -go 1.21 - -require ( - github.com/pulumi/pulumi/sdk/v3 v3.0.0 -) diff --git a/go/pulumi/plugin/crane/provider/main.go b/go/pulumi/plugin/crane/provider/main.go index 726b93a30f..11a46a2873 100644 --- a/go/pulumi/plugin/crane/provider/main.go +++ b/go/pulumi/plugin/crane/provider/main.go @@ -1,12 +1,10 @@ package main import ( - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + p "github.com/pulumi/pulumi-go-provider" + "github.com/pulumi/pulumi-xyz/provider" ) func main() { - pulumi.Run(func(ctx *pulumi.Context) error { - // Implement the provider logic here - return nil - }) + p.RunProvider(provider.Name, provider.Version, provider.Provider()) } From a3f3c5f81992271962f50235c1c99759d18659af Mon Sep 17 00:00:00 2001 From: "Thomas Neil James Shadwell (aider)" Date: Sun, 27 Oct 2024 14:07:32 -0700 Subject: [PATCH 5/7] fix: Update module path in go.mod for Pulumi provider --- go/pulumi/plugin/crane/provider/go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/pulumi/plugin/crane/provider/go.mod b/go/pulumi/plugin/crane/provider/go.mod index 9a94c4f5df..f0130a3362 100644 --- a/go/pulumi/plugin/crane/provider/go.mod +++ b/go/pulumi/plugin/crane/provider/go.mod @@ -1,4 +1,4 @@ -module github.com/pulumi/pulumi-xyz/provider +module github.com/zemn-me/monorepo/go/pulumi/plugin/crane/provider go 1.22 From b90a6cb534c88c622c1ee85974b1628bf338fd4d Mon Sep 17 00:00:00 2001 From: "Thomas Neil James Shadwell (aider)" Date: Sun, 27 Oct 2024 14:09:42 -0700 Subject: [PATCH 6/7] fix: Add missing newline at end of tsconfig.json file --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index d53ba23d26..0bca155bab 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -36,4 +36,4 @@ "dist", "external" ] -} \ No newline at end of file +} From 86ab9206d25f8742e7b79cfbc06959f737ab6b73 Mon Sep 17 00:00:00 2001 From: Thomas Neil James Shadwell Date: Sun, 27 Oct 2024 14:11:44 -0700 Subject: [PATCH 7/7] missed these --- .gitignore | 2 + .../cmd/pulumi-resource-crane/main.go | 24 +++++++ go/pulumi/provider/something/provider.go | 66 +++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 go/pulumi/plugin/crane/provider/cmd/pulumi-resource-crane/main.go create mode 100644 go/pulumi/provider/something/provider.go diff --git a/.gitignore b/.gitignore index a5830312d7..9726487ca3 100644 --- a/.gitignore +++ b/.gitignore @@ -70,3 +70,5 @@ yarn.lock .venv +.aider* +.env diff --git a/go/pulumi/plugin/crane/provider/cmd/pulumi-resource-crane/main.go b/go/pulumi/plugin/crane/provider/cmd/pulumi-resource-crane/main.go new file mode 100644 index 0000000000..74f172fd05 --- /dev/null +++ b/go/pulumi/plugin/crane/provider/cmd/pulumi-resource-crane/main.go @@ -0,0 +1,24 @@ +// Copyright 2016-2023, Pulumi Corporation. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package main + +import ( + p "github.com/pulumi/pulumi-go-provider" + + crane "github.com/pulumi/pulumi-crane/provider" +) + +// Serve the provider against Pulumi's Provider protocol. +func main() { p.RunProvider(xyz.Name, xyz.Version, xyz.Provider()) } diff --git a/go/pulumi/provider/something/provider.go b/go/pulumi/provider/something/provider.go new file mode 100644 index 0000000000..117effbf6a --- /dev/null +++ b/go/pulumi/provider/something/provider.go @@ -0,0 +1,66 @@ +// Copyright 2016-2023, Pulumi Corporation. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package provider + +import ( + p "github.com/pulumi/pulumi-go-provider" + "github.com/pulumi/pulumi-go-provider/infer" + "github.com/pulumi/pulumi/sdk/v3/go/common/tokens" +) + +// Version is initialized by the Go linker to contain the semver of this build. +var Version string + +const Name string = "xyz" + +func Provider() p.Provider { + // We tell the provider what resources it needs to support. + // In this case, a single resource and component + return infer.Provider(infer.Options{ + Resources: []infer.InferredResource{ + infer.Resource[Random, RandomArgs, RandomState](), + }, + Resources: []infer.InferredResource{ + infer.Resource[CraneImage, CraneImageArgs, CraneImageState](), + }, + Components: []infer.InferredComponent{ + infer.Component[*RandomComponent, RandomComponentArgs, *RandomComponentState](), + }, + Config: infer.Config[Config](), + ModuleMap: map[tokens.ModuleName]tokens.ModuleName{ + "provider": "index", + }, + }) +} + +// CraneImage represents a resource for uploading an OCI image to ECR using Crane. +type CraneImage struct{} + +// CraneImageArgs are the input arguments for creating a CraneImage resource. +type CraneImageArgs struct { + ImagePath string `pulumi:"imagePath"` + Repository string `pulumi:"repository"` + Tag string `pulumi:"tag"` +} + +// CraneImageState is the state of a CraneImage resource. +type CraneImageState struct { + ImageDigest string `pulumi:"imageDigest"` +} + +// Define some provider-level configuration +type Config struct { + Scream *bool `pulumi:"itsasecret,optional"` +}