英文:
Getting too many arguments in call to spdy.NewRoundTripperWithProxy error when i try to run my terratest go code for validating EKS cluster on AWS
问题
在运行我的Terratest Go代码时,出现了"在调用spdy.NewRoundTripperWithProxy时参数过多"的错误。我的代码用于在AWS EKS上部署、验证和取消部署Kubernetes Pod。
我的脚本在3个月前完全正常工作,但似乎在这3个月中发生了一些Kubernetes方面的库更改,影响了我的脚本。
最令人困扰的是,我无法找出脚本失败的具体行号。
go mod init和go mod tidy都正常工作,但一旦运行go test命令,就会出现附带的屏幕截图中的错误。
我的代码位于Dropbox上:Dropbox链接
英文:
Getting too many arguments in call to spdy.NewRoundTripperWithProxy error when i try to run my terratest go code which deploys, validates and un-deploys k8s pod to/from AWS EKS
My scripts were perfectly working fine 3 months back but looks like some library change happened in between these 3 months in k8s side which is affecting my scripts
Most problematic part is i am unable to find out at which line number my script is failing
go mod init and go go mod tidy are working fine but as soon as i run go test command getting the error as attached in the screen shot.
My code is present in Dropbox
答案1
得分: 0
我从gruntwork社区得到了解决这个问题的方法。
我们需要调用或使用go get -u k8s.io/apimachinery@v0.20.6命令,该命令会拉取/设置所需的库到相应的版本。
以下是当前问题的解决步骤:
- go mod init <测试脚本名称>
- go get -u k8s.io/apimachinery@v0.20.6
- go mod tidy -compat=1.17
- go test -v -timeout 120m | tee test_output.log
英文:
I got resolution from gruntwork community which helped me to fix this issue
We need to call or use go get -u k8s.io/apimachinery@v0.20.6 command which pulls/sets required library to relevant version
Below steps are the resolutions for the current problem
- go mod init <test script name>
- go get -u k8s.io/apimachinery@v0.20.6
- go mod tidy -compat=1.17
- go test -v -timeout 120m | tee test_output.log
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论