This message was deleted.
# kubernetes
s
This message was deleted.
g
The
get_resource
method should be the way to go. Perhaps you’re using the wrong name for the Service? You can also directly access the
resources
property on that
ConfigFile
class. You can see the implementation of that method here: https://github.com/pulumi/pulumi-kubernetes/blob/d9e686f4f9d6996e3eee3fece902d29a226bcf49/sdk/python/pulumi_kubernetes/yaml.py#L344-L363
m
huh, that’s really weird.. the error I get is that the method
get_resource
doesn’t exist on the ConfigFile, not that it’s not finding the resource I’m querying for… Let me paste my entire code snippet, maybe I’m doing something stupid
Very odd.. it just worked this time 😕
well, thank you very much for the help, @gorgeous-egg-16927! I don’t really know what I was doing wrong before, but I’m glad it works now, and now I know to look at the source code when in doubt
👍 1