Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: read talosconfig from secrets directory
Similar to the way kubectl reads kubeconfig, we attempt to load talosconfig file from multiple locations. If the file exists under `/var/run/secrets/talos.dev/config`, we load with higher priority before falling back to `~/.talos/config`. This will allow talosctl to be able to access Talos API from inside a pod when talosconfig is mounted into `/var/run/secrets/talos.dev/config`, similar to the way Kubernetes service account tokens work. Part of #5980. Signed-off-by: Utku Ozdemir <[email protected]>
- Loading branch information