The --hide-notes and --render-subchart-notes flags have no effect for
`helm template` since template output never includes notes. Mark these
flags as deprecated and hide them from help output.
The flags are preserved for backwards compatibility in Helm 4 and will
be removed in Helm 5.
Fixes#31752
Signed-off-by: Scott Rigby <scott@r6by.com>
f.BoolVar(&client.EnableDNS,"enable-dns",false,"enable DNS lookups when rendering templates")
f.BoolVar(&client.HideNotes,"hide-notes",false,"if set, do not show notes in install output. Does not affect presence in chart metadata")
f.BoolVar(&client.TakeOwnership,"take-ownership",false,"if set, install will ignore the check for helm annotations and take ownership of the existing resources")
// For `helm template`, these notes flags are legacy, unused, and should not show in help, but
// must remain accepted for backwards compatibility in Helm 4. Deprecate and hide them for now
// TODO remove these from template command in Helm 5
ifcmd.Name()=="template"{
iferr:=cmd.Flags().MarkDeprecated("hide-notes","this flag has no effect for 'helm template' and will be removed in Helm 5");err!=nil{