https://pulumi.com logo
#kubernetes
Title
# kubernetes
g

gray-sunset-78851

08/27/2023, 9:15 PM
Hello, Is there any plan to make
crd2pulumi
generate the code that uses Kubernetes provider v4?
m

millions-army-91633

09/05/2023, 6:47 PM
Hello, i try something here https://github.com/pulumi/crd2pulumi/compare/master...RouxAntoine:crd2pulumi:feature/upgrade-dependencies-sdk-to-v4?expand=1#diff-86c84[…]b495bebR57 and obtained to generate pulumi type with v4. But what i don’t understand is that generated resource contained shaded Type
ObjectMetaArgs
which is empty. and so the shaded type conflict with standard
ObjectMetaArgs
type from here github.com/pulumi/pulumi-kubernetes/sdk/v4/go/kubernetes/meta/v1
g

gray-sunset-78851

09/05/2023, 8:26 PM
I don't think you should change the base import path. But then you have the issue of having an internal module import, even changing the internal module name (the utilities) doesn't help, since kubernetes provider must also make it non internal. Anyway, I posted here after I tried to upgrade but got stuck because of the above....