Hello! I’m using `k8s.apiextensions.CustomResource...
# typescript
e
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
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.