Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
352fea90
Unverified
Commit
352fea90
authored
8 years ago
by
Matt Butcher
Browse files
Options
Download
Patches
Plain Diff
fix(helm): add no-hooks to upgrade
Mark disable-hooks as deprecated. Closes #1575
parent
189bc431
release-2.0
v2.0.2
v2.0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/helm/upgrade.go
+4
-1
cmd/helm/upgrade.go
with
4 additions
and
1 deletion
+4
-1
cmd/helm/upgrade.go
+
4
−
1
View file @
352fea90
...
@@ -87,13 +87,16 @@ func newUpgradeCmd(client helm.Interface, out io.Writer) *cobra.Command {
...
@@ -87,13 +87,16 @@ func newUpgradeCmd(client helm.Interface, out io.Writer) *cobra.Command {
f
.
StringVarP
(
&
upgrade
.
valuesFile
,
"values"
,
"f"
,
""
,
"path to a values YAML file"
)
f
.
StringVarP
(
&
upgrade
.
valuesFile
,
"values"
,
"f"
,
""
,
"path to a values YAML file"
)
f
.
BoolVar
(
&
upgrade
.
dryRun
,
"dry-run"
,
false
,
"simulate an upgrade"
)
f
.
BoolVar
(
&
upgrade
.
dryRun
,
"dry-run"
,
false
,
"simulate an upgrade"
)
f
.
StringVar
(
&
upgrade
.
values
,
"set"
,
""
,
"set values on the command line. Separate values with commas: key1=val1,key2=val2"
)
f
.
StringVar
(
&
upgrade
.
values
,
"set"
,
""
,
"set values on the command line. Separate values with commas: key1=val1,key2=val2"
)
f
.
BoolVar
(
&
upgrade
.
disableHooks
,
"disable-hooks"
,
false
,
"disable pre/post upgrade hooks"
)
f
.
BoolVar
(
&
upgrade
.
disableHooks
,
"disable-hooks"
,
false
,
"disable pre/post upgrade hooks. DEPRECATED. Use no-hooks"
)
f
.
BoolVar
(
&
upgrade
.
disableHooks
,
"no-hooks"
,
false
,
"disable pre/post upgrade hooks"
)
f
.
BoolVar
(
&
upgrade
.
verify
,
"verify"
,
false
,
"verify the provenance of the chart before upgrading"
)
f
.
BoolVar
(
&
upgrade
.
verify
,
"verify"
,
false
,
"verify the provenance of the chart before upgrading"
)
f
.
StringVar
(
&
upgrade
.
keyring
,
"keyring"
,
defaultKeyring
(),
"path to the keyring that contains public singing keys"
)
f
.
StringVar
(
&
upgrade
.
keyring
,
"keyring"
,
defaultKeyring
(),
"path to the keyring that contains public singing keys"
)
f
.
BoolVarP
(
&
upgrade
.
install
,
"install"
,
"i"
,
false
,
"if a release by this name doesn't already exist, run an install"
)
f
.
BoolVarP
(
&
upgrade
.
install
,
"install"
,
"i"
,
false
,
"if a release by this name doesn't already exist, run an install"
)
f
.
StringVar
(
&
upgrade
.
namespace
,
"namespace"
,
"default"
,
"namespace to install the release into (only used if --install is set)"
)
f
.
StringVar
(
&
upgrade
.
namespace
,
"namespace"
,
"default"
,
"namespace to install the release into (only used if --install is set)"
)
f
.
StringVar
(
&
upgrade
.
version
,
"version"
,
""
,
"specify the exact chart version to use. If this is not specified, the latest version is used"
)
f
.
StringVar
(
&
upgrade
.
version
,
"version"
,
""
,
"specify the exact chart version to use. If this is not specified, the latest version is used"
)
f
.
MarkDeprecated
(
"disable-hooks"
,
"use --no-hooks instead"
)
return
cmd
return
cmd
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets