fix(style): add missing comments

parent 5d909d8c
...@@ -316,6 +316,7 @@ func UpgradeDryRun(dry bool) UpdateOption { ...@@ -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 { func ResetValues(reset bool) UpdateOption {
return func(opts *options) { return func(opts *options) {
opts.resetValues = reset opts.resetValues = reset
......
...@@ -28,6 +28,7 @@ import ( ...@@ -28,6 +28,7 @@ import (
"k8s.io/helm/pkg/kube" "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) { func New(namespace string, client *internalclientset.Clientset, config *restclient.Config) (*kube.Tunnel, error) {
podName, err := getTillerPodName(client.Core(), namespace) podName, err := getTillerPodName(client.Core(), namespace)
if err != nil { if err != nil {
......
...@@ -39,6 +39,7 @@ const ( ...@@ -39,6 +39,7 @@ const (
ReleaseTestFailure = "test-failure" ReleaseTestFailure = "test-failure"
) )
// FilterTestHooks filters the list of hooks are returns only testing hooks.
func FilterTestHooks(hooks []*release.Hook) ([]*release.Hook, error) { func FilterTestHooks(hooks []*release.Hook) ([]*release.Hook, error) {
testHooks := []*release.Hook{} testHooks := []*release.Hook{}
notFoundErr := errors.New("no tests found") notFoundErr := errors.New("no tests found")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment