diff --git a/cmd/helm/install.go b/cmd/helm/install.go index 117c7ba5b..784f041c4 100644 --- a/cmd/helm/install.go +++ b/cmd/helm/install.go @@ -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: diff --git a/cmd/helm/upgrade.go b/cmd/helm/upgrade.go index 6b885ba63..d3ff163d4 100644 --- a/cmd/helm/upgrade.go +++ b/cmd/helm/upgrade.go @@ -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,