From 5500aded8fa66d4afabfaeba1693ac4930e960b4 Mon Sep 17 00:00:00 2001 From: Ryan Packer Date: Mon, 11 Mar 2024 16:45:53 +1300 Subject: [PATCH] fix: :bug: fix git org reference --- .goreleaser.yml | 2 +- Makefile | 2 +- README-DEVELOPMENT.md | 2 +- README.md | 8 ++++-- docs/installation-configuration.md | 2 +- .../cmd/pulumi-resource-astronomer/main.go | 2 +- .../pulumi-resource-astronomer/schema.json | 28 +++++++++---------- provider/cmd/pulumi-tfgen-astronomer/main.go | 2 +- provider/go.mod | 2 +- provider/resources.go | 16 +++++------ provider/shim/shim.go | 2 +- sdk/dotnet/Cluster.cs | 2 +- sdk/dotnet/Deployment.cs | 2 +- sdk/dotnet/Provider.cs | 2 +- sdk/dotnet/RyanPip.Astronomer.csproj | 8 +++--- sdk/dotnet/Utilities.cs | 2 +- sdk/dotnet/Workspace.cs | 2 +- sdk/dotnet/pulumi-plugin.json | 2 +- sdk/go.mod | 2 +- sdk/go/astronomer/cluster.go | 4 +-- sdk/go/astronomer/config/config.go | 2 +- sdk/go/astronomer/deployment.go | 2 +- sdk/go/astronomer/getCluster.go | 4 +-- sdk/go/astronomer/getDeployment.go | 2 +- sdk/go/astronomer/getOrganization.go | 4 +-- sdk/go/astronomer/getWorkspace.go | 4 +-- sdk/go/astronomer/init.go | 2 +- sdk/go/astronomer/internal/pulumiUtilities.go | 4 +-- sdk/go/astronomer/provider.go | 2 +- sdk/go/astronomer/pulumi-plugin.json | 2 +- sdk/go/astronomer/pulumiTypes.go | 2 +- sdk/go/astronomer/workspace.go | 4 +-- sdk/nodejs/README.md | 2 +- sdk/nodejs/package.json | 6 ++-- sdk/nodejs/utilities.ts | 2 +- sdk/python/README.md | 8 ++++-- sdk/python/pulumi-astronomer/README.md | 2 +- sdk/python/pulumi-astronomer/_utilities.py | 2 +- .../pulumi-astronomer/pulumi-plugin.json | 2 +- sdk/python/pulumi_astronomer/README.md | 2 +- sdk/python/pulumi_astronomer/_utilities.py | 2 +- .../pulumi_astronomer/pulumi-plugin.json | 2 +- sdk/python/setup.py | 4 +-- 43 files changed, 85 insertions(+), 77 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index f8b614c..1575a66 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -18,7 +18,7 @@ builds: - linux ldflags: # The line below MUST align with the module in current provider/go.mod - - -X github.com/ryan.pip/pulumi-astronomer/provider/pkg/version.Version={{.Tag }} + - -X github.com/ryan-pip/pulumi-astronomer/provider/pkg/version.Version={{.Tag }} main: ./cmd/pulumi-resource-astronomer/ changelog: skip: true diff --git a/Makefile b/Makefile index 29c24d9..8ea7ee2 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) SHELL := /bin/bash -PROJECT := github.com/ryan.pip/pulumi-astronomer +PROJECT := github.com/ryan-pip/pulumi-astronomer NODE_MODULE_NAME := @ryan-pip/pulumi_astronomer TF_NAME := astronomer PROVIDER_PATH := provider diff --git a/README-DEVELOPMENT.md b/README-DEVELOPMENT.md index 9aa51dd..9e96473 100644 --- a/README-DEVELOPMENT.md +++ b/README-DEVELOPMENT.md @@ -190,7 +190,7 @@ section of the code where we construct a `tfbridge.ProviderInfo` object: ```go - GitHubOrg: "ryan.pip", + GitHubOrg: "ryan-pip", ``` 1. **Add provider configuration overrides (not typically needed):** Pulumi's diff --git a/README.md b/README.md index 17a4e51..cfd0bda 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # Astronomer Resource Provider -The Astronomer Resource Provider lets you manage [astronomer](https://www.pulumi.com/registry/packages/astronomer/) resources. +The Astronomer Resource Provider lets you manage [astronomer](https://www.pulumi.com/registry/packages/astronomer/) resources as +part of the [Astronomer Cloud](https://www.astronomer.io/). + +This provider is a bridged version of the [terraform provider](https://registry.terraform.io/providers/GK-Consulting/astronomer/latest/docs/resources/workspace). The +majority of the credit needs to go to the original [authors](https://github.com/GK-Consulting/terraform-provider-astronomer) of the terraform provider. ## Installing @@ -33,7 +37,7 @@ pip install pulumi-astronomer To use from Go, use `go get` to grab the latest version of the library: ```bash -go get github.com/ryan.pip/pulumi-astronomer/sdk/go/... +go get github.com/ryan-pip/pulumi-astronomer/sdk/go/... ``` ### .NET (ToD0) diff --git a/docs/installation-configuration.md b/docs/installation-configuration.md index e0296cc..5f54f57 100644 --- a/docs/installation-configuration.md +++ b/docs/installation-configuration.md @@ -10,7 +10,7 @@ The Pulumi Astronomer provider is available as a package in all Pulumi languages * JavaScript/TypeScript: [`@ryan-pip/pulumi_astronomer`](https://www.npmjs.com/package/@ryan-pip/pulumi_astronomer) * Python: [`pulumi_astronomer`](https://pypi.org/project/pulumi_astronomer/) -* Go: [`github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer`](https://pkg.go.dev/github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer) +* Go: [`github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer`](https://pkg.go.dev/github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer) * .NET: [`RyanPip.Astronomer`](https://www.nuget.org/packages/RyanPip.Astronomer) diff --git a/provider/cmd/pulumi-resource-astronomer/main.go b/provider/cmd/pulumi-resource-astronomer/main.go index 28701e6..7dbec15 100644 --- a/provider/cmd/pulumi-resource-astronomer/main.go +++ b/provider/cmd/pulumi-resource-astronomer/main.go @@ -21,7 +21,7 @@ import ( _ "embed" "github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge" - astronomer "github.com/ryan.pip/pulumi-astronomer/provider" + astronomer "github.com/ryan-pip/pulumi-astronomer/provider" ) //go:embed schema-embed.json diff --git a/provider/cmd/pulumi-resource-astronomer/schema.json b/provider/cmd/pulumi-resource-astronomer/schema.json index a73e643..b3a2c13 100644 --- a/provider/cmd/pulumi-resource-astronomer/schema.json +++ b/provider/cmd/pulumi-resource-astronomer/schema.json @@ -7,13 +7,13 @@ "astronomer", "category/infrastructure" ], - "homepage": "https://github.com/ryan.pip/pulumi-astronomer", + "homepage": "https://github.com/ryan-pip/pulumi-astronomer", "license": "Apache-2.0", "attribution": "This Pulumi package is based on the [`astronomer` Terraform Provider](https://github.com/GK-Consulting/terraform-provider-astronomer).", - "repository": "https://github.com/ryan.pip/pulumi-astronomer", - "logoUrl": "https://raw.githubusercontent.com/ryan.pip/pulumi-astronomer/main/docs/astronomer.svg", - "pluginDownloadURL": "github://api.github.com/ryan.pip/pulumi-astronomer", - "publisher": "ryan.pip", + "repository": "https://github.com/ryan-pip/pulumi-astronomer", + "logoUrl": "https://raw.githubusercontent.com/ryan-pip/pulumi-astronomer/main/docs/astronomer.svg", + "pluginDownloadURL": "github://api.github.com/ryan-pip/pulumi-astronomer", + "publisher": "ryan-pip", "meta": { "moduleFormat": "(.*)(?:/[^/]*)" }, @@ -26,12 +26,12 @@ "rootNamespace": "RyanPip" }, "go": { - "importBasePath": "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer", + "importBasePath": "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer", "generateResourceContainerTypes": true, "generateExtraInputTypes": true }, "java": { - "basePackage": "com.ryan.pip", + "basePackage": "com.ryan-pip", "buildFiles": "", "gradleNexusPublishPluginVersion": "", "gradleTest": "" @@ -39,7 +39,7 @@ "nodejs": { "packageName": "@ryan-pip/pulumi_astronomer", "packageDescription": "A Pulumi package for creating and managing Astronomer Cloud resources. Based on terraform-provider-astronomer: version v0.3.0", - "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/GK-Consulting/terraform-provider-astronomer)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-astronomer` repo](https://github.com/ryan.pip/pulumi-astronomer/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-astronomer` repo](https://github.com/GK-Consulting/terraform-provider-astronomer/issues).", + "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/GK-Consulting/terraform-provider-astronomer)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-astronomer` repo](https://github.com/ryan-pip/pulumi-astronomer/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-astronomer` repo](https://github.com/GK-Consulting/terraform-provider-astronomer/issues).", "dependencies": { "@pulumi/pulumi": "^3.0.0" }, @@ -55,7 +55,7 @@ "requires": { "pulumi": "\u003e=3.0.0,\u003c4.0.0" }, - "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/GK-Consulting/terraform-provider-astronomer)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-astronomer` repo](https://github.com/ryan.pip/pulumi-astronomer/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-astronomer` repo](https://github.com/GK-Consulting/terraform-provider-astronomer/issues).", + "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/GK-Consulting/terraform-provider-astronomer)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-astronomer` repo](https://github.com/ryan-pip/pulumi-astronomer/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-astronomer` repo](https://github.com/GK-Consulting/terraform-provider-astronomer/issues).", "compatibility": "tfbridge20", "pyproject": {} } @@ -343,7 +343,7 @@ }, "resources": { "astronomer:index/cluster:Cluster": { - "description": "A cluster within an organization. An Astro cluster is a Kubernetes cluster that hosts the infrastructure required to run Deployments.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as astronomer from \"@ryan-pip/pulumi_astronomer\";\n\nconst dedicated = new astronomer.Workspace(\"dedicated\", {\n cicdEnforcedDefault: true,\n description: \"Workspace that demos a dedicated deployment set up\",\n});\nconst awsDedicated = new astronomer.Cluster(\"awsDedicated\", {\n cloudProvider: \"AWS\",\n region: \"us-east-1\",\n type: \"DEDICATED\",\n vpcSubnetRange: \"172.20.0.0/20\",\n k8sTags: [],\n nodePools: [],\n workspaceIds: [dedicated.id],\n});\n```\n```python\nimport pulumi\nimport pulumi_astronomer as astronomer\n\ndedicated = astronomer.Workspace(\"dedicated\",\n cicd_enforced_default=True,\n description=\"Workspace that demos a dedicated deployment set up\")\naws_dedicated = astronomer.Cluster(\"awsDedicated\",\n cloud_provider=\"AWS\",\n region=\"us-east-1\",\n type=\"DEDICATED\",\n vpc_subnet_range=\"172.20.0.0/20\",\n k8s_tags=[],\n node_pools=[],\n workspace_ids=[dedicated.id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Astronomer = RyanPip.Astronomer;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dedicated = new Astronomer.Workspace(\"dedicated\", new()\n {\n CicdEnforcedDefault = true,\n Description = \"Workspace that demos a dedicated deployment set up\",\n });\n\n var awsDedicated = new Astronomer.Cluster(\"awsDedicated\", new()\n {\n CloudProvider = \"AWS\",\n Region = \"us-east-1\",\n Type = \"DEDICATED\",\n VpcSubnetRange = \"172.20.0.0/20\",\n K8sTags = new[] {},\n NodePools = new[] {},\n WorkspaceIds = new[]\n {\n dedicated.Id,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdedicated, err := astronomer.NewWorkspace(ctx, \"dedicated\", \u0026astronomer.WorkspaceArgs{\n\t\t\tCicdEnforcedDefault: pulumi.Bool(true),\n\t\t\tDescription: pulumi.String(\"Workspace that demos a dedicated deployment set up\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = astronomer.NewCluster(ctx, \"awsDedicated\", \u0026astronomer.ClusterArgs{\n\t\t\tCloudProvider: pulumi.String(\"AWS\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tType: pulumi.String(\"DEDICATED\"),\n\t\t\tVpcSubnetRange: pulumi.String(\"172.20.0.0/20\"),\n\t\t\tK8sTags: astronomer.ClusterK8sTagArray{},\n\t\t\tNodePools: astronomer.ClusterNodePoolArray{},\n\t\t\tWorkspaceIds: pulumi.StringArray{\n\t\t\t\tdedicated.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.astronomer.Workspace;\nimport com.pulumi.astronomer.WorkspaceArgs;\nimport com.pulumi.astronomer.Cluster;\nimport com.pulumi.astronomer.ClusterArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dedicated = new Workspace(\"dedicated\", WorkspaceArgs.builder() \n .cicdEnforcedDefault(true)\n .description(\"Workspace that demos a dedicated deployment set up\")\n .build());\n\n var awsDedicated = new Cluster(\"awsDedicated\", ClusterArgs.builder() \n .cloudProvider(\"AWS\")\n .region(\"us-east-1\")\n .type(\"DEDICATED\")\n .vpcSubnetRange(\"172.20.0.0/20\")\n .k8sTags()\n .nodePools()\n .workspaceIds(dedicated.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dedicated:\n type: astronomer:Workspace\n properties:\n cicdEnforcedDefault: true\n description: Workspace that demos a dedicated deployment set up\n awsDedicated:\n type: astronomer:Cluster\n properties:\n cloudProvider: AWS\n region: us-east-1\n type: DEDICATED\n vpcSubnetRange: 172.20.0.0/20\n k8sTags: []\n nodePools: []\n workspaceIds:\n - ${dedicated.id}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "A cluster within an organization. An Astro cluster is a Kubernetes cluster that hosts the infrastructure required to run Deployments.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as astronomer from \"@ryan-pip/pulumi_astronomer\";\n\nconst dedicated = new astronomer.Workspace(\"dedicated\", {\n cicdEnforcedDefault: true,\n description: \"Workspace that demos a dedicated deployment set up\",\n});\nconst awsDedicated = new astronomer.Cluster(\"awsDedicated\", {\n cloudProvider: \"AWS\",\n region: \"us-east-1\",\n type: \"DEDICATED\",\n vpcSubnetRange: \"172.20.0.0/20\",\n k8sTags: [],\n nodePools: [],\n workspaceIds: [dedicated.id],\n});\n```\n```python\nimport pulumi\nimport pulumi_astronomer as astronomer\n\ndedicated = astronomer.Workspace(\"dedicated\",\n cicd_enforced_default=True,\n description=\"Workspace that demos a dedicated deployment set up\")\naws_dedicated = astronomer.Cluster(\"awsDedicated\",\n cloud_provider=\"AWS\",\n region=\"us-east-1\",\n type=\"DEDICATED\",\n vpc_subnet_range=\"172.20.0.0/20\",\n k8s_tags=[],\n node_pools=[],\n workspace_ids=[dedicated.id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Astronomer = RyanPip.Astronomer;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dedicated = new Astronomer.Workspace(\"dedicated\", new()\n {\n CicdEnforcedDefault = true,\n Description = \"Workspace that demos a dedicated deployment set up\",\n });\n\n var awsDedicated = new Astronomer.Cluster(\"awsDedicated\", new()\n {\n CloudProvider = \"AWS\",\n Region = \"us-east-1\",\n Type = \"DEDICATED\",\n VpcSubnetRange = \"172.20.0.0/20\",\n K8sTags = new[] {},\n NodePools = new[] {},\n WorkspaceIds = new[]\n {\n dedicated.Id,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdedicated, err := astronomer.NewWorkspace(ctx, \"dedicated\", \u0026astronomer.WorkspaceArgs{\n\t\t\tCicdEnforcedDefault: pulumi.Bool(true),\n\t\t\tDescription: pulumi.String(\"Workspace that demos a dedicated deployment set up\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = astronomer.NewCluster(ctx, \"awsDedicated\", \u0026astronomer.ClusterArgs{\n\t\t\tCloudProvider: pulumi.String(\"AWS\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tType: pulumi.String(\"DEDICATED\"),\n\t\t\tVpcSubnetRange: pulumi.String(\"172.20.0.0/20\"),\n\t\t\tK8sTags: astronomer.ClusterK8sTagArray{},\n\t\t\tNodePools: astronomer.ClusterNodePoolArray{},\n\t\t\tWorkspaceIds: pulumi.StringArray{\n\t\t\t\tdedicated.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.astronomer.Workspace;\nimport com.pulumi.astronomer.WorkspaceArgs;\nimport com.pulumi.astronomer.Cluster;\nimport com.pulumi.astronomer.ClusterArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dedicated = new Workspace(\"dedicated\", WorkspaceArgs.builder() \n .cicdEnforcedDefault(true)\n .description(\"Workspace that demos a dedicated deployment set up\")\n .build());\n\n var awsDedicated = new Cluster(\"awsDedicated\", ClusterArgs.builder() \n .cloudProvider(\"AWS\")\n .region(\"us-east-1\")\n .type(\"DEDICATED\")\n .vpcSubnetRange(\"172.20.0.0/20\")\n .k8sTags()\n .nodePools()\n .workspaceIds(dedicated.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dedicated:\n type: astronomer:Workspace\n properties:\n cicdEnforcedDefault: true\n description: Workspace that demos a dedicated deployment set up\n awsDedicated:\n type: astronomer:Cluster\n properties:\n cloudProvider: AWS\n region: us-east-1\n type: DEDICATED\n vpcSubnetRange: 172.20.0.0/20\n k8sTags: []\n nodePools: []\n workspaceIds:\n - ${dedicated.id}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "cloudProvider": { "type": "string", @@ -904,7 +904,7 @@ } }, "astronomer:index/workspace:Workspace": { - "description": "Astronomer Workspace Resource\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as astronomer from \"@ryan-pip/pulumi_astronomer\";\n\nconst completeSetup = new astronomer.Workspace(\"completeSetup\", {\n cicdEnforcedDefault: true,\n description: \"Testing Workspace\",\n});\n```\n```python\nimport pulumi\nimport pulumi_astronomer as astronomer\n\ncomplete_setup = astronomer.Workspace(\"completeSetup\",\n cicd_enforced_default=True,\n description=\"Testing Workspace\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Astronomer = RyanPip.Astronomer;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var completeSetup = new Astronomer.Workspace(\"completeSetup\", new()\n {\n CicdEnforcedDefault = true,\n Description = \"Testing Workspace\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := astronomer.NewWorkspace(ctx, \"completeSetup\", \u0026astronomer.WorkspaceArgs{\n\t\t\tCicdEnforcedDefault: pulumi.Bool(true),\n\t\t\tDescription: pulumi.String(\"Testing Workspace\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.astronomer.Workspace;\nimport com.pulumi.astronomer.WorkspaceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var completeSetup = new Workspace(\"completeSetup\", WorkspaceArgs.builder() \n .cicdEnforcedDefault(true)\n .description(\"Testing Workspace\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n completeSetup:\n type: astronomer:Workspace\n properties:\n cicdEnforcedDefault: true\n description: Testing Workspace\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Astronomer Workspace Resource\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as astronomer from \"@ryan-pip/pulumi_astronomer\";\n\nconst completeSetup = new astronomer.Workspace(\"completeSetup\", {\n cicdEnforcedDefault: true,\n description: \"Testing Workspace\",\n});\n```\n```python\nimport pulumi\nimport pulumi_astronomer as astronomer\n\ncomplete_setup = astronomer.Workspace(\"completeSetup\",\n cicd_enforced_default=True,\n description=\"Testing Workspace\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Astronomer = RyanPip.Astronomer;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var completeSetup = new Astronomer.Workspace(\"completeSetup\", new()\n {\n CicdEnforcedDefault = true,\n Description = \"Testing Workspace\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := astronomer.NewWorkspace(ctx, \"completeSetup\", \u0026astronomer.WorkspaceArgs{\n\t\t\tCicdEnforcedDefault: pulumi.Bool(true),\n\t\t\tDescription: pulumi.String(\"Testing Workspace\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.astronomer.Workspace;\nimport com.pulumi.astronomer.WorkspaceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var completeSetup = new Workspace(\"completeSetup\", WorkspaceArgs.builder() \n .cicdEnforcedDefault(true)\n .description(\"Testing Workspace\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n completeSetup:\n type: astronomer:Workspace\n properties:\n cicdEnforcedDefault: true\n description: Testing Workspace\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "cicdEnforcedDefault": { "type": "boolean", @@ -958,7 +958,7 @@ }, "functions": { "astronomer:index/getCluster:getCluster": { - "description": "Astronomer Cluster Data Source\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as astronomer from \"@pulumi/astronomer\";\n\nconst importedCluster = astronomer.getCluster({\n id: \"clqoclq8201pp01p0cbt77feb\",\n});\n```\n```python\nimport pulumi\nimport pulumi_astronomer as astronomer\n\nimported_cluster = astronomer.get_cluster(id=\"clqoclq8201pp01p0cbt77feb\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Astronomer = Pulumi.Astronomer;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var importedCluster = Astronomer.GetCluster.Invoke(new()\n {\n Id = \"clqoclq8201pp01p0cbt77feb\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := astronomer.LookupCluster(ctx, \u0026astronomer.LookupClusterArgs{\n\t\t\tId: \"clqoclq8201pp01p0cbt77feb\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.astronomer.AstronomerFunctions;\nimport com.pulumi.astronomer.inputs.GetClusterArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var importedCluster = AstronomerFunctions.getCluster(GetClusterArgs.builder()\n .id(\"clqoclq8201pp01p0cbt77feb\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n importedCluster:\n fn::invoke:\n Function: astronomer:getCluster\n Arguments:\n id: clqoclq8201pp01p0cbt77feb\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Astronomer Cluster Data Source\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as astronomer from \"@pulumi/astronomer\";\n\nconst importedCluster = astronomer.getCluster({\n id: \"clqoclq8201pp01p0cbt77feb\",\n});\n```\n```python\nimport pulumi\nimport pulumi_astronomer as astronomer\n\nimported_cluster = astronomer.get_cluster(id=\"clqoclq8201pp01p0cbt77feb\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Astronomer = Pulumi.Astronomer;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var importedCluster = Astronomer.GetCluster.Invoke(new()\n {\n Id = \"clqoclq8201pp01p0cbt77feb\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := astronomer.LookupCluster(ctx, \u0026astronomer.LookupClusterArgs{\n\t\t\tId: \"clqoclq8201pp01p0cbt77feb\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.astronomer.AstronomerFunctions;\nimport com.pulumi.astronomer.inputs.GetClusterArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var importedCluster = AstronomerFunctions.getCluster(GetClusterArgs.builder()\n .id(\"clqoclq8201pp01p0cbt77feb\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n importedCluster:\n fn::invoke:\n Function: astronomer:getCluster\n Arguments:\n id: clqoclq8201pp01p0cbt77feb\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getCluster.\n", "properties": { @@ -1145,7 +1145,7 @@ } }, "astronomer:index/getOrganization:getOrganization": { - "description": "Astronomer Organization Resource\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as astronomer from \"@pulumi/astronomer\";\n\nconst test = astronomer.getOrganization({\n id: \"abc123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_astronomer as astronomer\n\ntest = astronomer.get_organization(id=\"abc123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Astronomer = Pulumi.Astronomer;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Astronomer.GetOrganization.Invoke(new()\n {\n Id = \"abc123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := astronomer.GetOrganization(ctx, \u0026astronomer.GetOrganizationArgs{\n\t\t\tId: \"abc123\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.astronomer.AstronomerFunctions;\nimport com.pulumi.astronomer.inputs.GetOrganizationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var test = AstronomerFunctions.getOrganization(GetOrganizationArgs.builder()\n .id(\"abc123\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n test:\n fn::invoke:\n Function: astronomer:getOrganization\n Arguments:\n id: abc123\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Astronomer Organization Resource\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as astronomer from \"@pulumi/astronomer\";\n\nconst test = astronomer.getOrganization({\n id: \"abc123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_astronomer as astronomer\n\ntest = astronomer.get_organization(id=\"abc123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Astronomer = Pulumi.Astronomer;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Astronomer.GetOrganization.Invoke(new()\n {\n Id = \"abc123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := astronomer.GetOrganization(ctx, \u0026astronomer.GetOrganizationArgs{\n\t\t\tId: \"abc123\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.astronomer.AstronomerFunctions;\nimport com.pulumi.astronomer.inputs.GetOrganizationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var test = AstronomerFunctions.getOrganization(GetOrganizationArgs.builder()\n .id(\"abc123\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n test:\n fn::invoke:\n Function: astronomer:getOrganization\n Arguments:\n id: abc123\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getOrganization.\n", "properties": { @@ -1234,7 +1234,7 @@ } }, "astronomer:index/getWorkspace:getWorkspace": { - "description": "Astronomer Workspace Resource\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as astronomer from \"@pulumi/astronomer\";\n\nconst importedWorkspace = astronomer.getWorkspace({\n id: \"cabcabcabcabcabcabcabcabcabc\",\n});\n```\n```python\nimport pulumi\nimport pulumi_astronomer as astronomer\n\nimported_workspace = astronomer.get_workspace(id=\"cabcabcabcabcabcabcabcabcabc\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Astronomer = Pulumi.Astronomer;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var importedWorkspace = Astronomer.GetWorkspace.Invoke(new()\n {\n Id = \"cabcabcabcabcabcabcabcabcabc\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := astronomer.LookupWorkspace(ctx, \u0026astronomer.LookupWorkspaceArgs{\n\t\t\tId: \"cabcabcabcabcabcabcabcabcabc\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.astronomer.AstronomerFunctions;\nimport com.pulumi.astronomer.inputs.GetWorkspaceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var importedWorkspace = AstronomerFunctions.getWorkspace(GetWorkspaceArgs.builder()\n .id(\"cabcabcabcabcabcabcabcabcabc\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n importedWorkspace:\n fn::invoke:\n Function: astronomer:getWorkspace\n Arguments:\n id: cabcabcabcabcabcabcabcabcabc\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Astronomer Workspace Resource\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as astronomer from \"@pulumi/astronomer\";\n\nconst importedWorkspace = astronomer.getWorkspace({\n id: \"cabcabcabcabcabcabcabcabcabc\",\n});\n```\n```python\nimport pulumi\nimport pulumi_astronomer as astronomer\n\nimported_workspace = astronomer.get_workspace(id=\"cabcabcabcabcabcabcabcabcabc\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Astronomer = Pulumi.Astronomer;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var importedWorkspace = Astronomer.GetWorkspace.Invoke(new()\n {\n Id = \"cabcabcabcabcabcabcabcabcabc\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := astronomer.LookupWorkspace(ctx, \u0026astronomer.LookupWorkspaceArgs{\n\t\t\tId: \"cabcabcabcabcabcabcabcabcabc\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.astronomer.AstronomerFunctions;\nimport com.pulumi.astronomer.inputs.GetWorkspaceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var importedWorkspace = AstronomerFunctions.getWorkspace(GetWorkspaceArgs.builder()\n .id(\"cabcabcabcabcabcabcabcabcabc\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n importedWorkspace:\n fn::invoke:\n Function: astronomer:getWorkspace\n Arguments:\n id: cabcabcabcabcabcabcabcabcabc\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getWorkspace.\n", "properties": { diff --git a/provider/cmd/pulumi-tfgen-astronomer/main.go b/provider/cmd/pulumi-tfgen-astronomer/main.go index 36b51b9..2f14262 100644 --- a/provider/cmd/pulumi-tfgen-astronomer/main.go +++ b/provider/cmd/pulumi-tfgen-astronomer/main.go @@ -15,8 +15,8 @@ package main import ( - astronomer "github.com/ryan.pip/pulumi-astronomer/provider" "github.com/pulumi/pulumi-terraform-bridge/pf/tfgen" + astronomer "github.com/ryan-pip/pulumi-astronomer/provider" ) func main() { diff --git a/provider/go.mod b/provider/go.mod index 1b7b7da..51b311d 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,4 +1,4 @@ -module github.com/ryan.pip/pulumi-astronomer/provider +module github.com/ryan-pip/pulumi-astronomer/provider go 1.21.5 diff --git a/provider/resources.go b/provider/resources.go index f12bf22..70b2073 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -29,7 +29,7 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/common/resource" "github.com/pulumi/pulumi/sdk/v3/go/common/tokens" "github.com/pulumi/pulumi/sdk/v3/go/common/util/contract" - "github.com/ryan.pip/pulumi-astronomer/provider/pkg/version" + "github.com/ryan-pip/pulumi-astronomer/provider/pkg/version" ) //go:embed cmd/pulumi-resource-astronomer/bridge-metadata.json @@ -99,17 +99,17 @@ func Provider() tfbridge.ProviderInfo { // Change this to your personal name (or a company name) that you // would like to be shown in the Pulumi Registry if this package is published // there. - Publisher: "ryan.pip", + Publisher: "ryan-pip", // LogoURL is optional but useful to help identify your package in the Pulumi Registry // if this package is published there. // // You may host a logo on a domain you control or add an SVG logo for your package // in your repository and use the raw content URL for that file as your logo URL. - LogoURL: "https://raw.githubusercontent.com/ryan.pip/pulumi-astronomer/main/docs/astronomer.svg", + LogoURL: "https://raw.githubusercontent.com/ryan-pip/pulumi-astronomer/main/docs/astronomer.svg", // PluginDownloadURL is an optional URL used to download the Provider // for use in Pulumi programs // e.g https://github.com/org/pulumi-provider-name/releases/ - PluginDownloadURL: "github://api.github.com/ryan.pip/pulumi-astronomer", + PluginDownloadURL: "github://api.github.com/ryan-pip/pulumi-astronomer", Description: "A Pulumi package for creating and managing Astronomer Cloud resources", // category/cloud tag helps with categorizing the package in the Pulumi Registry. // For all available categories, see `Keywords` in @@ -120,8 +120,8 @@ func Provider() tfbridge.ProviderInfo { "category/infrastructure", }, License: "Apache-2.0", - Homepage: "https://github.com/ryan.pip/pulumi-astronomer", - Repository: "https://github.com/ryan.pip/pulumi-astronomer", + Homepage: "https://github.com/ryan-pip/pulumi-astronomer", + Repository: "https://github.com/ryan-pip/pulumi-astronomer", // The GitHub Org for the provider - defaults to `terraform-providers`. Note that this // should match the TF provider module's require directive, not any replace directives. Version: version.Version, @@ -180,7 +180,7 @@ func Provider() tfbridge.ProviderInfo { }, Golang: &tfbridge.GolangInfo{ ImportBasePath: filepath.Join( - fmt.Sprintf("github.com/ryan.pip/pulumi-%[1]s/sdk/", "astronomer"), + fmt.Sprintf("github.com/ryan-pip/pulumi-%[1]s/sdk/", "astronomer"), tfbridge.GetModuleMajorVersion(version.Version), "go", "astronomer", @@ -195,7 +195,7 @@ func Provider() tfbridge.ProviderInfo { }, }, Java: &tfbridge.JavaInfo{ - BasePackage: "com.ryan.pip", + BasePackage: "com.ryan-pip", }, } diff --git a/provider/shim/shim.go b/provider/shim/shim.go index b81b939..5c374f0 100644 --- a/provider/shim/shim.go +++ b/provider/shim/shim.go @@ -3,7 +3,7 @@ package shim import ( "github.com/GK-Consulting/terraform-provider-astronomer/internal/provider" tf "github.com/hashicorp/terraform-plugin-framework/provider" - "github.com/ryan.pip/pulumi-astronomer/provider/pkg/version" + "github.com/ryan-pip/pulumi-astronomer/provider/pkg/version" ) func NewProvider() tf.Provider { diff --git a/sdk/dotnet/Cluster.cs b/sdk/dotnet/Cluster.cs index e112d18..231f029 100644 --- a/sdk/dotnet/Cluster.cs +++ b/sdk/dotnet/Cluster.cs @@ -174,7 +174,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/ryan.pip/pulumi-astronomer", + PluginDownloadURL = "github://api.github.com/ryan-pip/pulumi-astronomer", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Deployment.cs b/sdk/dotnet/Deployment.cs index ffe8464..c96dd51 100644 --- a/sdk/dotnet/Deployment.cs +++ b/sdk/dotnet/Deployment.cs @@ -165,7 +165,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/ryan.pip/pulumi-astronomer", + PluginDownloadURL = "github://api.github.com/ryan-pip/pulumi-astronomer", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Provider.cs b/sdk/dotnet/Provider.cs index 60ff08a..d113b6d 100644 --- a/sdk/dotnet/Provider.cs +++ b/sdk/dotnet/Provider.cs @@ -49,7 +49,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/ryan.pip/pulumi-astronomer", + PluginDownloadURL = "github://api.github.com/ryan-pip/pulumi-astronomer", AdditionalSecretOutputs = { "token", diff --git a/sdk/dotnet/RyanPip.Astronomer.csproj b/sdk/dotnet/RyanPip.Astronomer.csproj index d28ab0e..cd49417 100644 --- a/sdk/dotnet/RyanPip.Astronomer.csproj +++ b/sdk/dotnet/RyanPip.Astronomer.csproj @@ -2,12 +2,12 @@ true - ryan.pip - ryan.pip + ryan-pip + ryan-pip A Pulumi package for creating and managing Astronomer Cloud resources Apache-2.0 - https://github.com/ryan.pip/pulumi-astronomer - https://github.com/ryan.pip/pulumi-astronomer + https://github.com/ryan-pip/pulumi-astronomer + https://github.com/ryan-pip/pulumi-astronomer logo.png net6.0 diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index 0d33774..c72850d 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -53,7 +53,7 @@ static class Utilities { var dst = src ?? new global::Pulumi.InvokeOptions{}; dst.Version = src?.Version ?? Version; - dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github://api.github.com/ryan.pip/pulumi-astronomer"; + dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github://api.github.com/ryan-pip/pulumi-astronomer"; return dst; } diff --git a/sdk/dotnet/Workspace.cs b/sdk/dotnet/Workspace.cs index 807f164..e0d71c1 100644 --- a/sdk/dotnet/Workspace.cs +++ b/sdk/dotnet/Workspace.cs @@ -76,7 +76,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/ryan.pip/pulumi-astronomer", + PluginDownloadURL = "github://api.github.com/ryan-pip/pulumi-astronomer", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/pulumi-plugin.json b/sdk/dotnet/pulumi-plugin.json index 48cbf68..1a56f0a 100644 --- a/sdk/dotnet/pulumi-plugin.json +++ b/sdk/dotnet/pulumi-plugin.json @@ -1,5 +1,5 @@ { "resource": true, "name": "astronomer", - "server": "github://api.github.com/ryan.pip/pulumi-astronomer" + "server": "github://api.github.com/ryan-pip/pulumi-astronomer" } diff --git a/sdk/go.mod b/sdk/go.mod index 6592802..189f356 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -1,4 +1,4 @@ -module github.com/ryan.pip/pulumi-astronomer/sdk +module github.com/ryan-pip/pulumi-astronomer/sdk go 1.21 diff --git a/sdk/go/astronomer/cluster.go b/sdk/go/astronomer/cluster.go index 7a2432a..2616f96 100644 --- a/sdk/go/astronomer/cluster.go +++ b/sdk/go/astronomer/cluster.go @@ -9,7 +9,7 @@ import ( "errors" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer/internal" + "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer/internal" ) // A cluster within an organization. An Astro cluster is a Kubernetes cluster that hosts the infrastructure required to run Deployments. @@ -22,7 +22,7 @@ import ( // import ( // // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer" +// "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer" // // ) // diff --git a/sdk/go/astronomer/config/config.go b/sdk/go/astronomer/config/config.go index ab1033c..eb84c99 100644 --- a/sdk/go/astronomer/config/config.go +++ b/sdk/go/astronomer/config/config.go @@ -6,7 +6,7 @@ package config import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" - "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer/internal" + "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer/internal" ) var _ = internal.GetEnvOrDefault diff --git a/sdk/go/astronomer/deployment.go b/sdk/go/astronomer/deployment.go index bfba112..c08ad48 100644 --- a/sdk/go/astronomer/deployment.go +++ b/sdk/go/astronomer/deployment.go @@ -9,7 +9,7 @@ import ( "errors" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer/internal" + "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer/internal" ) // An Astro Deployment is an Airflow environment that is powered by all core Airflow components. diff --git a/sdk/go/astronomer/getCluster.go b/sdk/go/astronomer/getCluster.go index 2b7b974..fd88e9d 100644 --- a/sdk/go/astronomer/getCluster.go +++ b/sdk/go/astronomer/getCluster.go @@ -8,7 +8,7 @@ import ( "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer/internal" + "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer/internal" ) // Astronomer Cluster Data Source @@ -21,7 +21,7 @@ import ( // import ( // // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer" +// "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer" // // ) // diff --git a/sdk/go/astronomer/getDeployment.go b/sdk/go/astronomer/getDeployment.go index bc1dff0..0e71fbd 100644 --- a/sdk/go/astronomer/getDeployment.go +++ b/sdk/go/astronomer/getDeployment.go @@ -8,7 +8,7 @@ import ( "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer/internal" + "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer/internal" ) // Astronomer Deployment Resource diff --git a/sdk/go/astronomer/getOrganization.go b/sdk/go/astronomer/getOrganization.go index c1f928b..bb6a13f 100644 --- a/sdk/go/astronomer/getOrganization.go +++ b/sdk/go/astronomer/getOrganization.go @@ -8,7 +8,7 @@ import ( "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer/internal" + "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer/internal" ) // Astronomer Organization Resource @@ -21,7 +21,7 @@ import ( // import ( // // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer" +// "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer" // // ) // diff --git a/sdk/go/astronomer/getWorkspace.go b/sdk/go/astronomer/getWorkspace.go index 5ddc17a..923d3d6 100644 --- a/sdk/go/astronomer/getWorkspace.go +++ b/sdk/go/astronomer/getWorkspace.go @@ -8,7 +8,7 @@ import ( "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer/internal" + "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer/internal" ) // Astronomer Workspace Resource @@ -21,7 +21,7 @@ import ( // import ( // // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer" +// "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer" // // ) // diff --git a/sdk/go/astronomer/init.go b/sdk/go/astronomer/init.go index 287c511..220a588 100644 --- a/sdk/go/astronomer/init.go +++ b/sdk/go/astronomer/init.go @@ -8,7 +8,7 @@ import ( "github.com/blang/semver" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer/internal" + "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer/internal" ) type module struct { diff --git a/sdk/go/astronomer/internal/pulumiUtilities.go b/sdk/go/astronomer/internal/pulumiUtilities.go index 3d153b2..b56e855 100644 --- a/sdk/go/astronomer/internal/pulumiUtilities.go +++ b/sdk/go/astronomer/internal/pulumiUtilities.go @@ -164,7 +164,7 @@ func callPlainInner( // PkgResourceDefaultOpts provides package level defaults to pulumi.OptionResource. func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption { defaults := []pulumi.ResourceOption{} - defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/ryan.pip/pulumi-astronomer")) + defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/ryan-pip/pulumi-astronomer")) version := SdkVersion if !version.Equals(semver.Version{}) { defaults = append(defaults, pulumi.Version(version.String())) @@ -175,7 +175,7 @@ func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOptio // PkgInvokeDefaultOpts provides package level defaults to pulumi.OptionInvoke. func PkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption { defaults := []pulumi.InvokeOption{} - defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/ryan.pip/pulumi-astronomer")) + defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/ryan-pip/pulumi-astronomer")) version := SdkVersion if !version.Equals(semver.Version{}) { defaults = append(defaults, pulumi.Version(version.String())) diff --git a/sdk/go/astronomer/provider.go b/sdk/go/astronomer/provider.go index d44c837..55767d9 100644 --- a/sdk/go/astronomer/provider.go +++ b/sdk/go/astronomer/provider.go @@ -9,7 +9,7 @@ import ( "errors" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer/internal" + "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer/internal" ) // The provider type for the astronomer package. By default, resources use package-wide configuration diff --git a/sdk/go/astronomer/pulumi-plugin.json b/sdk/go/astronomer/pulumi-plugin.json index 48cbf68..1a56f0a 100644 --- a/sdk/go/astronomer/pulumi-plugin.json +++ b/sdk/go/astronomer/pulumi-plugin.json @@ -1,5 +1,5 @@ { "resource": true, "name": "astronomer", - "server": "github://api.github.com/ryan.pip/pulumi-astronomer" + "server": "github://api.github.com/ryan-pip/pulumi-astronomer" } diff --git a/sdk/go/astronomer/pulumiTypes.go b/sdk/go/astronomer/pulumiTypes.go index f4381dd..42356ea 100644 --- a/sdk/go/astronomer/pulumiTypes.go +++ b/sdk/go/astronomer/pulumiTypes.go @@ -8,7 +8,7 @@ import ( "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer/internal" + "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer/internal" ) var _ = internal.GetEnvOrDefault diff --git a/sdk/go/astronomer/workspace.go b/sdk/go/astronomer/workspace.go index e41e19d..d296faa 100644 --- a/sdk/go/astronomer/workspace.go +++ b/sdk/go/astronomer/workspace.go @@ -8,7 +8,7 @@ import ( "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer/internal" + "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer/internal" ) // Astronomer Workspace Resource @@ -21,7 +21,7 @@ import ( // import ( // // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/ryan.pip/pulumi-astronomer/sdk/go/astronomer" +// "github.com/ryan-pip/pulumi-astronomer/sdk/go/astronomer" // // ) // diff --git a/sdk/nodejs/README.md b/sdk/nodejs/README.md index d2f8317..e44fe92 100644 --- a/sdk/nodejs/README.md +++ b/sdk/nodejs/README.md @@ -1,4 +1,4 @@ > This provider is a derived work of the [Terraform Provider](https://github.com/GK-Consulting/terraform-provider-astronomer) > distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, -> first check the [`pulumi-astronomer` repo](https://github.com/ryan.pip/pulumi-astronomer/issues); however, if that doesn't turn up anything, +> first check the [`pulumi-astronomer` repo](https://github.com/ryan-pip/pulumi-astronomer/issues); however, if that doesn't turn up anything, > please consult the source [`terraform-provider-astronomer` repo](https://github.com/GK-Consulting/terraform-provider-astronomer/issues). diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 7d814e6..74434ff 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -7,8 +7,8 @@ "astronomer", "category/infrastructure" ], - "homepage": "https://github.com/ryan.pip/pulumi-astronomer", - "repository": "https://github.com/ryan.pip/pulumi-astronomer", + "homepage": "https://github.com/ryan-pip/pulumi-astronomer", + "repository": "https://github.com/ryan-pip/pulumi-astronomer", "license": "Apache-2.0", "scripts": { "build": "tsc" @@ -24,6 +24,6 @@ "pulumi": { "resource": true, "name": "astronomer", - "server": "github://api.github.com/ryan.pip/pulumi-astronomer" + "server": "github://api.github.com/ryan-pip/pulumi-astronomer" } } diff --git a/sdk/nodejs/utilities.ts b/sdk/nodejs/utilities.ts index 72a342e..698a69c 100644 --- a/sdk/nodejs/utilities.ts +++ b/sdk/nodejs/utilities.ts @@ -53,7 +53,7 @@ export function getVersion(): string { /** @internal */ export function resourceOptsDefaults(): any { - return { version: getVersion(), pluginDownloadURL: "github://api.github.com/ryan.pip/pulumi-astronomer" }; + return { version: getVersion(), pluginDownloadURL: "github://api.github.com/ryan-pip/pulumi-astronomer" }; } /** @internal */ diff --git a/sdk/python/README.md b/sdk/python/README.md index 17a4e51..cfd0bda 100644 --- a/sdk/python/README.md +++ b/sdk/python/README.md @@ -1,6 +1,10 @@ # Astronomer Resource Provider -The Astronomer Resource Provider lets you manage [astronomer](https://www.pulumi.com/registry/packages/astronomer/) resources. +The Astronomer Resource Provider lets you manage [astronomer](https://www.pulumi.com/registry/packages/astronomer/) resources as +part of the [Astronomer Cloud](https://www.astronomer.io/). + +This provider is a bridged version of the [terraform provider](https://registry.terraform.io/providers/GK-Consulting/astronomer/latest/docs/resources/workspace). The +majority of the credit needs to go to the original [authors](https://github.com/GK-Consulting/terraform-provider-astronomer) of the terraform provider. ## Installing @@ -33,7 +37,7 @@ pip install pulumi-astronomer To use from Go, use `go get` to grab the latest version of the library: ```bash -go get github.com/ryan.pip/pulumi-astronomer/sdk/go/... +go get github.com/ryan-pip/pulumi-astronomer/sdk/go/... ``` ### .NET (ToD0) diff --git a/sdk/python/pulumi-astronomer/README.md b/sdk/python/pulumi-astronomer/README.md index f8adb71..9ca07e1 100644 --- a/sdk/python/pulumi-astronomer/README.md +++ b/sdk/python/pulumi-astronomer/README.md @@ -1,4 +1,4 @@ > This provider is a derived work of the [Terraform Provider](https://github.com/GK-Consulting/terraform-provider-astronomer) > distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, -> first check the [`pulumi-astronomer` repo](https://github.com/ryan.pip/pulumi-astronomer/issues); however, if that doesn't turn up anything, +> first check the [`pulumi-astronomer` repo](https://github.com/ryan-pip/pulumi-astronomer/issues); however, if that doesn't turn up anything, > please consult the source [`terraform-provider-astronomer` repo](https://github.com/GK-Consulting/terraform-provider-astronomer/issues). \ No newline at end of file diff --git a/sdk/python/pulumi-astronomer/_utilities.py b/sdk/python/pulumi-astronomer/_utilities.py index 17f5fdb..0457d84 100644 --- a/sdk/python/pulumi-astronomer/_utilities.py +++ b/sdk/python/pulumi-astronomer/_utilities.py @@ -292,4 +292,4 @@ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bo ) def get_plugin_download_url(): - return "github://api.github.com/ryan.pip/pulumi-astronomer" + return "github://api.github.com/ryan-pip/pulumi-astronomer" diff --git a/sdk/python/pulumi-astronomer/pulumi-plugin.json b/sdk/python/pulumi-astronomer/pulumi-plugin.json index 48cbf68..1a56f0a 100644 --- a/sdk/python/pulumi-astronomer/pulumi-plugin.json +++ b/sdk/python/pulumi-astronomer/pulumi-plugin.json @@ -1,5 +1,5 @@ { "resource": true, "name": "astronomer", - "server": "github://api.github.com/ryan.pip/pulumi-astronomer" + "server": "github://api.github.com/ryan-pip/pulumi-astronomer" } diff --git a/sdk/python/pulumi_astronomer/README.md b/sdk/python/pulumi_astronomer/README.md index f8adb71..9ca07e1 100644 --- a/sdk/python/pulumi_astronomer/README.md +++ b/sdk/python/pulumi_astronomer/README.md @@ -1,4 +1,4 @@ > This provider is a derived work of the [Terraform Provider](https://github.com/GK-Consulting/terraform-provider-astronomer) > distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, -> first check the [`pulumi-astronomer` repo](https://github.com/ryan.pip/pulumi-astronomer/issues); however, if that doesn't turn up anything, +> first check the [`pulumi-astronomer` repo](https://github.com/ryan-pip/pulumi-astronomer/issues); however, if that doesn't turn up anything, > please consult the source [`terraform-provider-astronomer` repo](https://github.com/GK-Consulting/terraform-provider-astronomer/issues). \ No newline at end of file diff --git a/sdk/python/pulumi_astronomer/_utilities.py b/sdk/python/pulumi_astronomer/_utilities.py index 17f5fdb..0457d84 100644 --- a/sdk/python/pulumi_astronomer/_utilities.py +++ b/sdk/python/pulumi_astronomer/_utilities.py @@ -292,4 +292,4 @@ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bo ) def get_plugin_download_url(): - return "github://api.github.com/ryan.pip/pulumi-astronomer" + return "github://api.github.com/ryan-pip/pulumi-astronomer" diff --git a/sdk/python/pulumi_astronomer/pulumi-plugin.json b/sdk/python/pulumi_astronomer/pulumi-plugin.json index 48cbf68..1a56f0a 100644 --- a/sdk/python/pulumi_astronomer/pulumi-plugin.json +++ b/sdk/python/pulumi_astronomer/pulumi-plugin.json @@ -1,5 +1,5 @@ { "resource": true, "name": "astronomer", - "server": "github://api.github.com/ryan.pip/pulumi-astronomer" + "server": "github://api.github.com/ryan-pip/pulumi-astronomer" } diff --git a/sdk/python/setup.py b/sdk/python/setup.py index ca187f7..babc54f 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -25,9 +25,9 @@ def readme(): long_description=readme(), long_description_content_type='text/markdown', keywords='pulumi astronomer category/infrastructure', - url='https://github.com/ryan.pip/pulumi-astronomer', + url='https://github.com/ryan-pip/pulumi-astronomer', project_urls={ - 'Repository': 'https://github.com/ryan.pip/pulumi-astronomer' + 'Repository': 'https://github.com/ryan-pip/pulumi-astronomer' }, license='Apache-2.0', packages=find_packages(),