Skip to content

Consider support multiple kubeconfigs #7

@Dentrax

Description

@Dentrax

If we set multiple KUBECONFIG in our $KUBECONFIG env flag, suspicious-pods could not understand and throws an exception:

$ export KUBECONFIG=$KUBECONFIG:$HOME/.kube/config:$HOME/.kube/config-foo:$HOME/.kube/config-bar
$ suspicious-pods

Error: Kubeconfig(ConfigInferenceExhausted { cluster_env: Kubeconfig(MissingInClusterVariables { hostenv: "KUBERNETES_SERVICE_HOST", portenv: "KUBERNETES_SERVICE_PORT" }), kubeconfig: Kubeconfig(ReadFile { path: ":/Users/furkan/.kube/config:/Users/furkan/.kube/config-foo:/Users/furkan/.kube/config-bar", source: Os { code: 2, kind: NotFound, message: "No such file or directory" } }) })

I think it should recognize that if given input is multiple files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions