Hi folks! Is there any API available in K8S provi...
# kubernetes
s
Hi folks! Is there any API available in K8S provider for
VolumeSnapshotClass
or the only way to create it via
yaml
resource?
h
hi @sparse-hospital-78807, the external-snapshotter CRDs aren’t currently part of the k8s provider, but you can use https://github.com/pulumi/crd2pulumi to generate types for these resources. i jotted down a request for this here https://github.com/pulumi/pulumi-kubernetes/issues/3004 — feel free to give that a 👍 or drop a note!
s
Thank you! I also faced weird behavior of
crd2pulumi
with some CRDs. Here is example: https://github.com/pulumi/crd2pulumi/issues/133
Not sure wether we can go live with
crd2pulumi
converter since we're randomly facing blockers like that. Would you recommend used mixed approach with plain yaml and typed resources generated with
crd2pulumi
for a while?
h
thanks for filing the issue and including the repro! we’ll look into this. (i’m a big fan of VM :)) a mixed approach should be fine — we recently released some improvements to the plain yaml support.
s
Thanks for reactive response and fix! This really simplify our journey