https://pulumi.com logo
#python
Title
# python
b

bland-lamp-16797

01/20/2021, 5:07 PM
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

gentle-diamond-70147

01/20/2021, 6:46 PM
I believe you need to specify the namespace for the service too -
.get('resource_name', 'namespace_name/service_name')
b

bland-lamp-16797

01/20/2021, 6:51 PM
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

brave-planet-10645

01/21/2021, 12:37 PM
pulumi-kubernetes
👍 1
b