Skip to content

Support KUBECONFIG env var and XDG config for kubeconfig and settings discovery - #390

Closed
Saulimedes wants to merge 2 commits into
kubie-org:masterfrom
Saulimedes:feat/kubeconfig-env-support
Closed

Support KUBECONFIG env var and XDG config for kubeconfig and settings discovery#390
Saulimedes wants to merge 2 commits into
kubie-org:masterfrom
Saulimedes:feat/kubeconfig-env-support

Conversation

@Saulimedes

Copy link
Copy Markdown

I am heavily using mise for my workflow on project based directories. I love the kubie approach but it wasn"t able to check my KUBECONFIG variable or a custom directory on the fly. I know there is some similar change asking for the support of the XDG_CONFIG_HOME (#140) which seems to be on purpose. But maybe enabling it optionally is an option?

  • KUBECONFIG env var support — kubie now reads the KUBECONFIG environment variable (colon-separated paths) to discover both kubeconfig files and kubie's own settings (kubie.yaml/kubie.yml). Entries can
    be files or directories.
  • XDG Base Directory support — kubie settings are also looked up at $XDG_CONFIG_HOME/kubie/kubie.yaml (defaults to ~/.config/kubie/), falling back to the original ~/.kube/kubie.yaml.
  • Quieter error output — kubeconfig load errors are now deferred and only printed when no valid contexts are found, avoiding noisy warnings when some configs are broken but others work.

Settings lookup order

  1. KUBECONFIG entries (direct file or directory containing kubie.yaml)
  2. $XDG_CONFIG_HOME/kubie/kubie.yaml
  3. ~/.kube/kubie.yaml (original default)

@Saulimedes Saulimedes closed this by deleting the head repository Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant