Add Warning when installing or upgrading a deprecated chart

Signed-off-by: Stanton Xu <xjiefeng@gmail.com>
pull/8262/head
Stanton Xu 5 years ago
parent dd2e5695da
commit 01bcae7263

@ -267,6 +267,11 @@ func (i *installCmd) run() error {
return prettyError(err)
}
if chartRequested.Metadata.Deprecated {
fmt.Fprintln(out, "WARNING: This chart is deprecated")
}
if req, err := chartutil.LoadRequirements(chartRequested); err == nil {
// If checkDependencies returns an error, we have unfulfilled dependencies.
// As of Helm 2.4.0, this is treated as a stopping condition:

@ -266,6 +266,10 @@ func (u *upgradeCmd) run() error {
return prettyError(err)
}
if ch.Metadata.Deprecated {
fmt.Fprintln(out, "WARNING: This chart is deprecated")
}
resp, err := u.client.UpdateReleaseFromChart(
u.release,
ch,

Loading…
Cancel
Save