Skip to content
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

Support CustomResource for k8s #706

Open
kylepl opened this issue Sep 16, 2024 · 2 comments
Open

Support CustomResource for k8s #706

kylepl opened this issue Sep 16, 2024 · 2 comments

Comments

@kylepl
Copy link

kylepl commented Sep 16, 2024

Hope things are well!

I'm attempting to start using CustomResource's in my configurations (i.e. from https://www.pulumi.com/registry/packages/kubernetes/api-docs/apiextensions/customresource/), and I believe I'm using the latest versions - but I do not see CustomResource classes being generated (i.e. com/pulumi/kubernetes/apiextensions/ just has subfolders, not CustomResource.kt or something similar).

So perhaps I'm missing something - and I do see recent work in this area.

Thanks!

@jplewa
Copy link
Member

jplewa commented Sep 17, 2024

Hi Kyle, glad to hear you're continuing to give it a try!

The kubernetes:apiextensions.k8s.io:CustomResource resource has its isOverlay parameter set to true in the schema, which, as per the docs:

Indicates that the implementation of the resource should not be generated from the schema, and is instead provided out-of-band by the package author

image

Therefore we don't generate these files, we will need to handle them manually. I see that Java started generating them in May, so we could create our own wrappers on top of those files, but it will take me some time to get to it. Thank you for pointing this out. In the meantime, you should be able to use the Java code directly.

@kylepl
Copy link
Author

kylepl commented Sep 17, 2024

Got it, makes sense. I will use the Java objects for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants