did something change in pulumi lib that I `service...
# python
b
did something change in pulumi lib that I
service_object = pulumi_kubernetes.core.v1.Service.get('whatever')
returns almost empty Service? All the sudden,
service_object.status
is None and I can't figure out why?
ok, somehow I got python 3.9 installed 😞
try to stay calm
and now I have
'pyyaml<5.4,>=5.3.1'
problem
ok, still have the same problem... 🤔
g
I believe you need to specify the namespace for the service too -
.get('resource_name', 'namespace_name/service_name')
b
ohhh, this is the code that worked and I don't undersand why it stopped
Copy code
from pulumi_kubernetes.core.v1 import Service
nginx_ingress = Service.get('nginx_ingress', 'b81-system/b81-nginx-ingress-controller',
No idea why
nginx_ingress.status
is None now 😞 this variable would work
nginx_ingress.status['load_balancer']['ingress'][0]['ip']
kubectl get service b81-nginx-ingress-controller -n b81-system
returns exactly the service that I want to extract external IP
ok, i'm losing it... I'll create a issue with more details because this seems bug to me 😞
which repo should I report this? pulumi or pulumi-kubernetes ?
b
pulumi-kubernetes
👍 1
b