https://pulumi.com logo
#general
Title
# general
s

sticky-lighter-73941

02/24/2020, 4:48 PM
Hi all, Is there a way to use/add custom CRDs in Pulumi-query-Kubernetes? https://www.pulumi.com/blog/query-kubernetes/
g

gorgeous-egg-16927

02/24/2020, 5:25 PM
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

sticky-lighter-73941

02/25/2020, 8:56 AM
@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

gorgeous-egg-16927

02/25/2020, 5:45 PM
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.