[0.11 backport] k8s: fix missing kubeconfig check from endpoint#1957
[0.11 backport] k8s: fix missing kubeconfig check from endpoint#1957jedevc merged 1 commit intodocker:v0.11from
Conversation
crazy-max
commented
Jul 18, 2023
- backport of k8s: fix missing kubeconfig check from endpoint #1941
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com> (cherry picked from commit 4384947)
|
Looks like github might be having some issues? |
Yes we could use their image: https://github.com/crazy-max/diun/blob/fe0622ecac59190d55eeea5f6a88f05a885300a3/hack/lint.Dockerfile#L11-L16 |
|
@crazy-max In this code, there seems to be a potential issue where multiple kubeconfig settings may override each other. For example, if I have multiple kubeconfig files, they might overwrite each other's configurations After reviewing the code snippet, I attempted to reproduce the issue. When multiple kubeconfig files are present and being read with the same environment variable, KUBECONFIG, there arises a problem of configurations being overwritten. |