From 7b1eda63cd4979aaf2fc92a2da44193680f28f9f Mon Sep 17 00:00:00 2001 From: knqyf263 Date: Wed, 26 Jun 2024 14:01:06 +0400 Subject: [PATCH] fix: add insecure to "plugin run" Signed-off-by: knqyf263 --- pkg/commands/app.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/commands/app.go b/pkg/commands/app.go index a5a35ee8203e..f749ed7727d1 100644 --- a/pkg/commands/app.go +++ b/pkg/commands/app.go @@ -817,7 +817,10 @@ func NewPluginCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command { Short: "Run a plugin on the fly", Args: cobra.MinimumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { - return plugin.Run(cmd.Context(), args[0], plugin.Options{Args: args[1:]}) + return plugin.Run(cmd.Context(), args[0], plugin.Options{ + Args: args[1:], + Insecure: pluginOptions.Insecure, + }) }, }, &cobra.Command{