Skip to content

Releases: pulumi/crd2pulumi

v1.5.4

13 Nov 19:37
d77b74b
Compare
Choose a tag to compare
Fix NodeJS metadata type (#159)

All of our languages except NodeJS use
`SchemaPackageWithObjectMetaType`. As a result, Node exposes only input
types for object metadata which makes it awkward to consume downstream.

I'm assuming https://github.com/pulumi/crd2pulumi/pull/143 didn't change
this for backwards-compatibility reasons, or maybe it was overlooked. I
_think_ it is safe to continue generating the `ObjectMeta` type alias
(in case users are importing it) but use the input/output types
(matching the upstream k8s types) on resources.

Edit: 

> // schemaPackageWithObjectMetaType is the Pulumi schema package used to
> // generate code for languages that need an ObjectMeta type (Python, Go, and .NET)

So this seems intentional. For whatever reason, using this with Node has
the effect of generating input/output types matching upstream's types,
which seems desirable.

Fixes https://github.com/pulumi/crd2pulumi/issues/158

v1.5.3

01 Oct 03:14
7a5693d
Compare
Choose a tag to compare
  • Fix crd2pulumi not generating all CRD versions. #152
  • Fix crd2pulumi generating packages and types with incorrect group names. #152

v1.5.2

17 Sep 00:00
Compare
Choose a tag to compare
  • Set the pulumi-kubernetes dependency for Python packages to v4.18.0. #148
  • Fixed generating Go types for StringMapArrayMap types. #147

v1.5.1

14 Sep 00:46
f670a71
Compare
Choose a tag to compare
  • Fixed Patch varaints not generated for types that end in List. #146

v1.5.0

13 Sep 23:20
74efa11
Compare
Choose a tag to compare

Added

  • Patch variant resources are now generated for all custom resources. Patch resources allow you to modify and an existing custom resource. For more details on using Patch resources, see our documentation.

Changed

  • The Pulumi schema generation now utilizes the library from the Pulumi Kubernetes provider, replacing the previous custom implementation. This resolves a number of correctness issues when generating code. #143
  • Golang package generation now correctly adheres to the --goPath CLI flag, aligning with the behavior of other languages. #89
  • CRDs with oneOf fields are now correctly typed and not generic. #97

Fixed

  • Various code generation correctness issues have been addressed, including:
    • Python packages can now be successfully imported and consumed by Pulumi Python programs. #113
    • Golang packages no longer produce compilation errors due to duplicate declarations. #104
    • NodeJS package names are now properly generated. #70
    • Dotnet packages now include the correct imports. #49
    • NodeJS object metadata types no longer accept undefined values. #34

v1.4.0

29 May 14:36
Compare
Choose a tag to compare
  • Fix unpinned Kubernetes version in generated nodejs resources. #121
  • Fix .NET generated code to use provider v4. #134
  • Fix invalid generated code due to unnamed properties. #135
  • Fix a panic when generating code with non-primitive defaults. #136
  • Add Java generation support. #129

v1.3.0

12 Dec 19:42
78ee41f
Compare
Choose a tag to compare
Prep v1.3.0 release

v1.2.5

31 May 15:08
7ac5f7e
Compare
Choose a tag to compare
Update changelog for v1.2.5 release

v1.2.4

24 Mar 00:24
93f89bc
Compare
Choose a tag to compare
Update pulumi pkg to fix emitting duplicate entires in pulumiTypes.go…

v1.2.3

18 Oct 21:24
6975b15
Compare
Choose a tag to compare
Update changelog for v1.2.3 release