Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
43c43784
Commit
43c43784
authored
Apr 12, 2019
by
SataQiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: using const block
Signed-off-by:
SataQiu
<
qiushida@beyondcent.com
>
parent
0664ef5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
options.go
cmd/helm/installer/options.go
+6
-6
No files found.
cmd/helm/installer/options.go
View file @
43c43784
...
...
@@ -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
{
...
...
@@ -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
}
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment