Update pkg/plugin/plugin.go

Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Benoit Tigeot <benoittgt@users.noreply.github.com>
(cherry picked from commit cda0865d64)
pull/31037/head
Benoit Tigeot 4 months ago committed by Matt Farina
parent 7e8f53421a
commit 24b44902a2
No known key found for this signature in database
GPG Key ID: 92C44A3D421FF7F9

@ -266,7 +266,7 @@ func validatePluginData(plug *Plugin, filepath string) error {
plug.Metadata.Usage = sanitizeString(plug.Metadata.Usage) plug.Metadata.Usage = sanitizeString(plug.Metadata.Usage)
if len(plug.Metadata.PlatformCommand) > 0 && len(plug.Metadata.Command) > 0 { if len(plug.Metadata.PlatformCommand) > 0 && len(plug.Metadata.Command) > 0 {
fmt.Printf("both platformCommand and command are set in %q. It's deprecated and will not be possible in Helm v4\n", filepath) fmt.Printf("WARNING: both 'platformCommand' and 'command' are set in %q (this will become an error in a future Helm version)\n", filepath)
} }
if len(plug.Metadata.PlatformHooks) > 0 && len(plug.Metadata.Hooks) > 0 { if len(plug.Metadata.PlatformHooks) > 0 && len(plug.Metadata.Hooks) > 0 {

Loading…
Cancel
Save