fix(helm): fix style issues

This just adds a few comments where the style linter was complaining.
pull/2348/head
Matt Butcher 7 years ago
parent d7ab16ad03
commit 3c55a0ee65
No known key found for this signature in database
GPG Key ID: DCD5F5E5EF32C345

@ -30,12 +30,17 @@ import (
)
const (
HomeEnvVar = "HELM_HOME"
PluginEnvVar = "HELM_PLUGIN"
// HomeEnvVar is the HELM_HOME environment variable key.
HomeEnvVar = "HELM_HOME"
// PluginEnvVar is the HELM_PLUGIN environment variable key.
PluginEnvVar = "HELM_PLUGIN"
// PluginDisableEnvVar is the HELM_NO_PLUGINS environment variable key.
PluginDisableEnvVar = "HELM_NO_PLUGINS"
HostEnvVar = "HELM_HOST"
// HostEnvVar is the HELM_HOST environment variable key.
HostEnvVar = "HELM_HOST"
)
// DefaultHelmHome gets the configured HELM_HOME, or returns the default.
func DefaultHelmHome() string {
if home := os.Getenv(HomeEnvVar); home != "" {
return home
@ -43,14 +48,21 @@ func DefaultHelmHome() string {
return filepath.Join(os.Getenv("HOME"), ".helm")
}
// DefaultHelmHost returns the configured HELM_HOST or an empty string.
func DefaultHelmHost() string {
return os.Getenv(HostEnvVar)
}
// EnvSettings describes all of the environment settings.
type EnvSettings struct {
TillerHost string
// TillerHost is the host and port of Tiller.
TillerHost string
// TillerNamespace is the namespace in which Tiller runs.
TillerNamespace string
Home helmpath.Home
PlugDirs string
Debug bool
// Home is the local path to the Helm home directory.
Home helmpath.Home
// PluginDirs is the path to the plugin directories.
PlugDirs string
// Debug indicates whether or not Helm is running in Debug mode.
Debug bool
}

Loading…
Cancel
Save