Skip to content

Commit

Permalink
Merge pull request helm#5594 from SataQiu/fix-20190412
Browse files Browse the repository at this point in the history
cleanup: using const block
  • Loading branch information
hickeyma authored Apr 12, 2019
2 parents 0664ef5 + 43c4378 commit 8494d13
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/helm/installer/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ import (
"k8s.io/helm/pkg/version"
)

const defaultImage = "gcr.io/kubernetes-helm/tiller"
const (
defaultImage = "gcr.io/kubernetes-helm/tiller"

fmtJSON OutputFormat = "json"
fmtYAML OutputFormat = "yaml"
)

// Options control how to install Tiller into a cluster, upgrade, and uninstall Tiller from a cluster.
type Options struct {
Expand Down Expand Up @@ -154,11 +159,6 @@ func (f *OutputFormat) Type() string {
return "OutputFormat"
}

const (
fmtJSON OutputFormat = "json"
fmtYAML OutputFormat = "yaml"
)

// Set validates and sets the value of the OutputFormat
func (f *OutputFormat) Set(s string) error {
for _, of := range []OutputFormat{fmtJSON, fmtYAML} {
Expand Down

0 comments on commit 8494d13

Please sign in to comment.