Skip to content

Getting "drift cannot run with multiple kubeconfig files" error even though only one kubeconfig is provided. #44

@Spitfire1900

Description

@Spitfire1900
export KUBECONFIG=/c/Users/XXXXX/.kube/my_vk8s.yaml
$ helm drift all --log-level debug
{"level":"info","msg":"since drift uses kubectl underneath with arg '--kubeconfig' drift cannot run with multiple kubeconfig files set under environment var 'KUBECONFIG', like mentioned in below document","time":"2025-06-20T13:04:36-04:00"}
https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/#append-home-kube-config-to-your-kubeconfig-environment-variable
2025/06/20 13:04:36 cmd.go:22: validation failed, please address the prerequisite errors to identify drifts
Error: plugin "drift" exited with error

There is only 1 cluster defined in the kubeconfig file.

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