Hi all, Is there a way to use/add custom CRDs in...
# general
s
Hi all, Is there a way to use/add custom CRDs in Pulumi-query-Kubernetes? https://www.pulumi.com/blog/query-kubernetes/
g
I’m not sure I understand your question. You should be able to query any resource by specifying the
apiVersion
and
kind
as shown in the examples from the blog post. Is that not working for you?
s
@gorgeous-egg-16927 thanks for your answer. Currently I’m working with Gatekeeper and I have a set of constraints defined in my cluster . Those resources looks something like this apiVersion: constraints.gatekeeper.sh/v1beta1 Kind: K8sBannedImageTags But when I tried to use for example kq.list it does not work because it does not recognise those values . I hope it’s a bit clearer now
g
Hmm, I see what you mean now. I expected that CRs would be supported here, but that appears to be an oversight in the SDK. I’ll open an issue to track.