You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When developing a function that waits for a service to get its load balancer ip address, I found the array of ip addresses did not have a length property, making the code below to fail:
let svc = k8sClient.services.apply( ..... )
while (svc.status.load_balancer.ingress.lenght == 0) { // length is 'undefined' which is != '0'
sleep(1)
svc = k8sClient.services.get("my-service", "my-namespace")
}
let svcIp = svc.status.load_balancer.ingress[0].ip
This is due to issues in the way goja defines the length property (thanks to @mstoykov for pointing to this) and is solved by bumping the k6 version used in xk6-kubernetes.
The text was updated successfully, but these errors were encountered:
When developing a function that waits for a service to get its load balancer ip address, I found the array of ip addresses did not have a length property, making the code below to fail:
This is due to issues in the way goja defines the length property (thanks to @mstoykov for pointing to this) and is solved by bumping the k6 version used in xk6-kubernetes.
The text was updated successfully, but these errors were encountered: