[codegen] pulumi imports are incorrectly using pulumi-kubernetes
#12624
Labels
area/codegen
SDK-gen, program-gen, convert
area/component-packages
aka multi-language components
customer/lighthouse
Lighthouse customer bugs
kind/bug
Some behavior is incorrect or out of spec
language/python
resolution/fixed
This issue was fixed
Milestone
What happened?
A type in a MLC schema file with
kubernetes:...:...
is automatically assumed to be frompulumi-kubernetes
and is referenced as such in the generated python SDK.Expected Behavior
Imports should be generated correctly as in the other languages.
Steps to reproduce
from pulumi-kubernetes import gcp as _gcp
location_policy
getter which utilizes a type which does not exist.Import statement
https://github.com/phillipedwards/pulumi-aws-s3-replicated-bucket/blob/f08cfb9caaa93cb185021535a2c5d7d4073cd3d3/sdk/python/pulumi_aws_s3_replicated_bucket/replicated_bucket.py#L11
getter function
https://github.com/phillipedwards/pulumi-aws-s3-replicated-bucket/blob/f08cfb9caaa93cb185021535a2c5d7d4073cd3d3/sdk/python/pulumi_aws_s3_replicated_bucket/replicated_bucket.py#L113
Output of
pulumi about
CLI
Version 3.60.1
Go Version go1.20.2
Go Compiler gc
Host
OS ubuntu
Version 22.04
Arch x86_64
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: