Closed xxfatumxx closed 4 years ago
Thank you for the tip @dtshepherd Just made additional commit with changes. Please review when you can.
@dtshepherd I don't think this PR gonna work
$HOME/.config/helm/auth.$REPO
would not work, because
helm env
should be used instead to detect the location of configsrepository.yaml
, so to reuse auth one need to parse that yaml@eshepelyuk helm env
works only in Helm 3 version. But I absolutely agree that this plugin could be run (in container, for example) under user with no definite home dir or initialized HOME variable. I'll fix this and another small bug with PASSWORD variable in next PR.
Yeah a buddy of mine gave me a heads up about the XDG yesterday. We’ll need to rework this to be a bit more generic. I don’t think the PR made things any worse though?
Nope, nothing worse. Just mentioning that Helm3 needs much more support and rework.
Maybe it worth to separate Helm2 and Helm3 plugins (using branches, for instance) ?
(In Helm version 3.x.x
helm home
doesn't work, so I've changed location for auth.REPO file. Helm version 2.x.x will work as well.This pull request makes the following changes:
Helm3 support