-
Notifications
You must be signed in to change notification settings - Fork 15
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
Issue importing generated crd with python 3.11 #113
Comments
Hi @jaxxstorm thanks for reporting the issue here. I took a quick look. It seems that I found that there is a workaround though. If you create a python Project
Then you can import this code as follows: import pulumi_crds as varnish
varnish_cluster = varnish.caching.v1alpha1.VarnishCluster(
"example",
spec=varnish.caching.v1alpha1.VarnishClusterSpecArgs(
service=None,
vcl=varnish.caching.v1alpha1.VarnishClusterSpecVclArgs(
config_map_name="example-vcl",
entrypoint_file_name="entrypoint.vcl",
),
backend=varnish.caching.v1alpha1.VarnishClusterSpecBackendArgs(
port=8080,
selector={}
)
)
) I had to correct some arguments - I didn't get through all the errors unfortunately but it got me to the following:
|
A workaround seems to be to give the generated package a version. Definitely seems like a bug though. |
Added to epic https://github.com/pulumi/home/issues/3431 |
This issue has been addressed in PR #143 and shipped in release v1.5.0. |
What happened?
I have previously been able to get this to work, but on python 3.11 I get the following error:
Expected Behavior
I can provision a custom resource
Steps to reproduce
Download a CRD:
Generate the default types
Import and use:
Output of
pulumi about
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: