小编San*_*ran的帖子

无法连接到服务器:获取凭据:解码标准输出:没有为版本注册任何类型的“ExecCredential”

**无法连接到服务器:获取凭据:解码标准输出:方案“pkg/client/auth/exec/exec.go”中的版本“client.authentication.k8s.io/v1alpha1”没有注册任何类型“ExecCredential”: 62 英寸\n**

\n
2022-09-16 16:35:00 [\xe2\x84\xb9]  eksctl version 0.111.0\n2022-09-16 16:35:00 [\xe2\x84\xb9]  using region ap-south-1\n2022-09-16 16:35:00 [\xe2\x84\xb9]  skipping ap-south-1c from selection because it doesn\'t support the following instance type(s): t2.micro\n2022-09-16 16:35:00 [\xe2\x84\xb9]  setting availability zones to [ap-south-1a ap-south-1b]\n2022-09-16 16:35:00 [\xe2\x84\xb9]  subnets for ap-south-1a - public:192.168.0.0/19 private:192.168.64.0/19\n2022-09-16 16:35:00 [\xe2\x84\xb9]  subnets for ap-south-1b - public:192.168.32.0/19 private:192.168.96.0/19\n2022-09-16 16:35:00 [\xe2\x84\xb9]  nodegroup "ng-1" will use "" [AmazonLinux2/1.23]\n2022-09-16 16:35:00 [\xe2\x84\xb9]  using Kubernetes version 1.23\n2022-09-16 16:35:00 [\xe2\x84\xb9]  creating EKS cluster "basic-cluster" in "ap-south-1" region with managed nodes\n2022-09-16 …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services kubernetes ubuntu-16.04 amazon-eks

15
推荐指数
3
解决办法
3万
查看次数

VS Code:Go - main 在该块中重新声明

VS code 中弹出此警告/问题;

main 在此块中重新声明 编译器(DuplicateDecl) <我的目录中的另一个 Go 文件名> main 的其他声明

我将所有 Go 练习文件都放在一个目录中,每个文件都有一个 func main() 块。

有人熟悉这个警告吗?如果是这样我该如何解决。

但是,即使我收到这个错误..或者无论你怎么称呼它..

我仍然可以在终端中运行 Go 代码并查看我的输入/输出,没有任何错误。

go visual-studio-code

6
推荐指数
2
解决办法
2万
查看次数