https://pulumi.com logo
#typescript
Title
# typescript
e

elegant-window-55250

12/13/2019, 3:25 PM
Hello! I’m using
k8s.apiextensions.CustomResource
and need to get the
status
output from that API resource. How do I get that? I can see information from
metadata
and
spec
but I’m not able to get
status
. I do also see the status is available in Pulumi Console.
r

rhythmic-hair-33677

12/14/2019, 2:46 AM
CustomResource if fire and forget. You can to use a kubernetes API client in the instance apply method. Or you can create a dummy pulumi resource that dependsOn the item and does the same on Create and Update.
The first is executed always. For reading a status this is fine and simpler, but for reading events (which disappear 1 hour later by default) it could cause issues. This is why I am moving to the latter.