-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qualify Pulumi.Resource type to stay out of the way of the resource
API in K8s v1.26.0
#2237
Conversation
Does the PR have any schema changes?Looking good! No breaking changes found. |
Does the PR have any schema changes?Looking good! No breaking changes found. |
1 similar comment
Does the PR have any schema changes?Looking good! No breaking changes found. |
Does the PR have any schema changes?Looking good! No breaking changes found. |
2f0101c
to
c4cd904
Compare
Does the PR have any schema changes?Looking good! No breaking changes found. |
The next release of Kubernetes (1.26.0) has an API named `resource`. In the .NET codegen, this will end up being a namespace `Resource`, clashing with the type name `Resource` which is implicitly in scope. To avoid this, give the Pulumi namespace an alias and use that to qualify the `Resource` type. Signed-off-by: Michael Bridgen <mbridgen@pulumi.com>
make build This produces code equivalent to previously, but now the templates alias the Pulumi namespace so the `Resource` type won't clash with any upcoming `Resource` namespace. Signed-off-by: Michael Bridgen <mbridgen@pulumi.com>
Signed-off-by: Michael Bridgen <mbridgen@pulumi.com>
c4cd904
to
7669dfb
Compare
Does the PR have any schema changes?Looking good! No breaking changes found. |
I'm going to merge this, on the basis that it's passed each of the acceptance test suites in at least one run, without the actual change here making any difference to the chance of success. |
This PR makes room for the
resource
API in Kubernetes v1.26.0, by qualifying the typeResource
in templated code for .NET. It would otherwise clash with the namespaceResource
generated to house the new API types.Fixes #2233.