diff --git a/pkg/helm/option.go b/pkg/helm/option.go index fef95d9d6..3853133ef 100644 --- a/pkg/helm/option.go +++ b/pkg/helm/option.go @@ -316,6 +316,7 @@ func UpgradeDryRun(dry bool) UpdateOption { } } +// ResetValues will (if true) trigger resetting the values to their original state. func ResetValues(reset bool) UpdateOption { return func(opts *options) { opts.resetValues = reset diff --git a/pkg/helm/portforwarder/portforwarder.go b/pkg/helm/portforwarder/portforwarder.go index 7d145e353..449b84f19 100644 --- a/pkg/helm/portforwarder/portforwarder.go +++ b/pkg/helm/portforwarder/portforwarder.go @@ -28,6 +28,7 @@ import ( "k8s.io/helm/pkg/kube" ) +// New creates a new and initialized tunnel. func New(namespace string, client *internalclientset.Clientset, config *restclient.Config) (*kube.Tunnel, error) { podName, err := getTillerPodName(client.Core(), namespace) if err != nil { diff --git a/pkg/hooks/hooks.go b/pkg/hooks/hooks.go index d7ec7141a..6e0e56fd9 100644 --- a/pkg/hooks/hooks.go +++ b/pkg/hooks/hooks.go @@ -39,6 +39,7 @@ const ( ReleaseTestFailure = "test-failure" ) +// FilterTestHooks filters the list of hooks are returns only testing hooks. func FilterTestHooks(hooks []*release.Hook) ([]*release.Hook, error) { testHooks := []*release.Hook{} notFoundErr := errors.New("no tests found")