terratest: Kubernetes Load Balancer type of service is not being recognized by Terratest tests
I have a test that creates a Kubernetes deployment and a service of LoadBalancer type. The test then looks for this service to execute an HTTP request. The test keeps waiting for the service to be provisioned, even though the service is up and running and then eventually fails. I executed a curl request on the service and it returned a successful response. On changing the service type from LoadBalancer to ClusterIP, leads to a success result. I had logged the same bug a couple of months ago and it had worked perfectly for version 0.23.5. I pulled the newest Terratest version (0.26.1) yesterday and suddenly this issue cropped up. Am I missing any step here? I am new to both Terratest and Go, so I am not sure if I am following the right steps. I pulled the latest Terratest version using the command go get -d -v github.com/gruntwork-io/terratest@v0.26.1. The content of the go.mod file is as shown below:
module Terratest
go 1.13
require (
github.com/go-sql-driver/mysql v1.4.1
github.com/gruntwork-io/terratest v0.26.1
)
The last time, all I had done was to run the go get command with version 0.23.5 and it had started to work.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (8 by maintainers)
Great! Thanks for working through this with us (with lots of patience too)! Will mark this as closed.
Hi I just released https://github.com/gruntwork-io/terratest/releases/tag/v0.26.3 as a potential fix for this. Can you try it out? It should work if you bump the version tag in
go.mod.Ah ok I was not aware that there were installation methods for minikube that doesn’t mark the node as
minikube. I’ll look into seeing if there are other ways to know if the cluster is Minikube.