Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Does not support multiple KUBECONFIG env #75

Open
yni9ht opened this issue Apr 11, 2022 · 0 comments
Open

Does not support multiple KUBECONFIG env #75

yni9ht opened this issue Apr 11, 2022 · 0 comments

Comments

@yni9ht
Copy link
Contributor

yni9ht commented Apr 11, 2022

官方对于 KUBECONFIG 环境变量的使用说明:设置 KUBECONFIG 环境变量

本地环境参数:

export KUBECONFIG=$KUBECONFIG:$HOME/.kube/work/ysz-dev
export KUBECONFIG=$KUBECONFIG:$HOME/.kube/ni9ht/k3s-sh

问题描述:
当本地的 KUBECONFIG 环境变量存在多个时,运行 dagger do up ./plans 时进行 kubeconfig 文件获取的时候会报错,错误如下:

[✗] client.commands.kubeconfig                                                                                                                               0.0s

10:59AM FTL failed to execute plan: task failed: client.commands.kubeconfig: exit status 1

修改建议:
目前看代码此处获取该环境变量主要用户获取 kubeconfig 文件内容,可以考虑使用自定义的环境变量让用户指定需要部署应用的集群 kubeconfig 文件。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant