Small docs improvements and fix lints

Signed-off-by: Alexander Nesterenko <nestorf250@gmail.com>
pull/5166/head
Alexander Nesterenko 7 years ago
parent 945d87e394
commit 8723b56965

@ -47,7 +47,7 @@ Environment:
$HELM_HOME set an alternative location for Helm files. By default, these are stored in
$XDG_CONFIG_DIR/helm ($HOME/.config/helm on Linux, %APPDATA%\helm on Windows
and $HOME/Library/Preferences/helm on macOS).
NOTE: if there is old-style $HOME/.helm directory, it will be used.
NOTE: if default does not exist but $HOME/.helm does, the last will be used.
$HELM_DRIVER set the backend storage driver. Values are: configmap, secret, memory
$HELM_NO_PLUGINS disable plugins. Set HELM_NO_PLUGINS=1 to disable plugins.
$KUBECONFIG set an alternative Kubernetes configuration file (default $HOME/.kube/config)

@ -17,9 +17,10 @@ limitations under the License.
package main
import (
"k8s.io/helm/pkg/helm/environment"
"os"
"testing"
"k8s.io/helm/pkg/helm/environment"
)
func TestRootCmd(t *testing.T) {

@ -48,7 +48,7 @@ located by default in one of following directories:
* `$HOME/.config/helm` on Linux
* `$HOME/Library/Preferences/helm` on macOS
* `%APPDATA%\helm` on Windows
* `$HOME/.helm` if you have used helm before 3rd release
* `$HOME/.helm` if it exists (this means you were using old version of Helm)
## Troubleshooting

@ -61,7 +61,7 @@ _helm home_. By default, it is located in one of these directories:
* `$HOME/.config/helm` on Linux
* `$HOME/Library/Preferences/helm` on OSx
* `%APPDATA%\helm` on Windows
* `$HOME/.helm` if you have used helm before 3rd release
* `$HOME/.helm` if it exists (this means you were using old version of Helm)
This directory contains configuration and cache data, and is created by
`helm init`.

@ -17,10 +17,11 @@ limitations under the License.
package environment
import (
"github.com/casimir/xdg-go"
"k8s.io/client-go/util/homedir"
"os"
"path/filepath"
"github.com/casimir/xdg-go"
"k8s.io/client-go/util/homedir"
)
// New default helm home, with different paths for different OS:

@ -23,9 +23,10 @@ These dependencies are expressed as interfaces so that alternate implementations
package environment
import (
"os"
"github.com/spf13/pflag"
"k8s.io/helm/pkg/helm/helmpath"
"os"
)
// EnvSettings describes all of the environment settings.

Loading…
Cancel
Save