Skip to content

Commit

Permalink
Ensure that 3.x dependencies are included as part of generated code (#40
Browse files Browse the repository at this point in the history
)

* Ensure that 3.x dependencies are included as part of generated code

Fixes: #18

* Update gen/golang.go

Co-authored-by: Mikhail Shilkov <[email protected]>

Co-authored-by: Mikhail Shilkov <[email protected]>
  • Loading branch information
stack72 and mikhailshilkov authored May 7, 2021
1 parent b20c611 commit 1ba1c7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gen/dotnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (pg *PackageGenerator) genDotNetFiles(name string) (map[string]*bytes.Buffe
pkg.Name = name
pkg.Language["csharp"] = rawMessage(map[string]interface{}{
"packageReferences": map[string]string{
"Pulumi.Kubernetes": "2.*",
"Pulumi.Kubernetes": "3.*",
},
"compatibility": "kubernetes20",
"dictionaryConstructors": true,
Expand Down
4 changes: 2 additions & 2 deletions gen/golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ func (pg *PackageGenerator) genGoFiles(name string) (map[string]*bytes.Buffer, e
moduleToPackage := pg.moduleToPackage()
moduleToPackage["meta/v1"] = "meta/v1"
pkg.Language["go"] = rawMessage(map[string]interface{}{
"importBasePath": "github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes",
"importBasePath": "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes",
"moduleToPackage": moduleToPackage,
"packageImportAliases": map[string]interface{}{
"github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/meta/v1": "metav1",
"github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/meta/v1": "metav1",
},
})

Expand Down
2 changes: 1 addition & 1 deletion gen/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (pg *PackageGenerator) genPythonFiles(name string) (map[string]*bytes.Buffe
"compatibility": "kubernetes20",
"moduleNameOverrides": pg.moduleToPackage(),
"requires": map[string]string{
"pulumi": "\u003e=2.0.0,\u003c3.0.0",
"pulumi": "\u003e=3.0.0,\u003c4.0.0",
"pyyaml": "\u003e=5.1,\u003c5.2",
"requests": "\u003e=2.21.0,\u003c2.22.0",
},
Expand Down

0 comments on commit 1ba1c7b

Please sign in to comment.