简体   繁体   English

当我尝试运行我的 terratest go 代码以验证 AWS 上的 EKS 集群时,调用 spdy.NewRoundTripperWithProxy 错误时获取太多参数

[英]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

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当我尝试运行我的 terratest go 代码向/从 AWS EKS 部署、验证和取消部署 k8s pod 时,调用 spdy.NewRoundTripperWithProxy 错误时获取太多参数

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我的脚本在 3 个月前运行良好,但看起来在这 3 个月之间在 k8s 方面发生了一些库更改,这影响了我的脚本

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. go mod init 和 go go mod tidy 工作正常,但是一旦我运行 go test 命令,就会得到屏幕截图中所附的错误。

在此处输入图像描述

My code is present in Dropbox我的代码存在于Dropbox

I got resolution from gruntwork community which helped me to fix this issue我从 gruntwork 社区获得了解决方案,帮助我解决了这个问题

We need to call or use go get -u k8s.io/apimachinery@v0.20.6 command which pulls/sets required library to relevant version我们需要调用或使用go get -u k8s.io/apimachinery@v0.20.6命令将所需的库拉取/设置到相关版本

Below steps are the resolutions for the current problem以下步骤是当前问题的解决方案

  1. go mod init去模组初始化
  2. go get -u k8s.io/apimachinery@v0.20.6去 -u k8s.io/apimachinery@v0.20.6
  3. go mod tidy -compat=1.17去 mod tidy -compat=1.17
  4. go test -v -timeout 120m | go test -v -timeout 120m | tee test_output.log三通 test_output.log

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM