I'm trying to figure out how to apply a custom res...
# kubernetes
l
I'm trying to figure out how to apply a custom resource like https://cert-manager.io/docs/configuration/acme/dns01/azuredns/#configure-a-clusterissuer. Anyone been able to figure out how? There's no example in the docs for this it seems, and nothing in the examples-repo either
there's a customresource https://www.pulumi.com/registry/packages/kubernetes/api-docs/apiextensions/customresource/ bit it doesn't look straight forward to use
yeah I'm giving up on this for now. I can't figure this out, and can't find a single piece of example code on the internet. Even Pulumi AI generates code that doesn't work.
q
i'm using this for karpenter and that works great, it's just a mapper from a regular manifest to a pulumi construct, the inputs makes it pretty obvious to use
l
Thanks! Yeah I couldnt figure out the syntax. Not a c# expert, but the rest of the pulumi stuff is easy enough to figure out but not this (at least for me)
m
Not 100% sure I followed what you were looking for, but you can use pulumi/crd2pulumi: Generate typed CustomResources from a Kubernetes CustomResourceDefinition to generate a typed SDK for most CRDs so you don't have to use the raw https://www.pulumi.com/registry/packages/kubernetes/api-docs/apiextensions/customresource/ resource directly