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

huangapple go评论99阅读模式
英文:

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.

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

My code is present in Dropbox

答案1

得分: 0

我从gruntwork社区得到了解决这个问题的方法。

我们需要调用或使用go get -u k8s.io/apimachinery@v0.20.6命令,该命令会拉取/设置所需的库到相应的版本。

以下是当前问题的解决步骤:

  1. go mod init <测试脚本名称>
  2. go get -u k8s.io/apimachinery@v0.20.6
  3. go mod tidy -compat=1.17
  4. 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

  1. go mod init <test script name>
  2. go get -u k8s.io/apimachinery@v0.20.6
  3. go mod tidy -compat=1.17
  4. go test -v -timeout 120m | tee test_output.log

huangapple
  • 本文由 发表于 2022年6月7日 01:19:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/72521259.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定