Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for PersistentFlags (0.15 sec)

  1. istioctl/pkg/clioptions/central.go

    	cmd.PersistentFlags().StringVar(&o.Xds, "xds-address", viper.GetString("XDS-ADDRESS"),
    		"XDS Endpoint")
    	cmd.PersistentFlags().StringVar(&o.CertDir, "cert-dir", viper.GetString("CERT-DIR"),
    		"XDS Endpoint certificate directory")
    	cmd.PersistentFlags().StringVar(&o.XdsPodLabel, "xds-label", "",
    		"Istiod pod label selector")
    	cmd.PersistentFlags().IntVar(&o.XdsPodPort, "xds-port", viper.GetInt("XDS-PORT"),
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jun 06 03:39:27 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  2. istioctl/cmd/root_test.go

    		parentFlag1 = "parent-flag1"
    		parentFlag2 = "parent-flag2"
    		childFlag2  = "child-flag2"
    	)
    	parent := &cobra.Command{Use: "parent"}
    	_ = parent.PersistentFlags().String(parentFlag0, "", parentFlag0)
    	_ = parent.PersistentFlags().String(parentFlag1, "", parentFlag1)
    	_ = parent.PersistentFlags().String(parentFlag2, "", parentFlag2)
    	var out bytes.Buffer
    	parent.SetOut(&out)
    	parent.SetErr(&out)
    
    	child := &cobra.Command{
    		Use: "child",
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jan 15 17:59:55 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  3. istioctl/pkg/proxystatus/proxystatus.go

    	centralOpts.AttachControlPlaneFlags(statusCmd)
    	statusCmd.PersistentFlags().StringVarP(&configDumpFile, "file", "f", "",
    		"Envoy config dump JSON file")
    	statusCmd.PersistentFlags().BoolVar(&multiXdsOpts.XdsViaAgents, "xds-via-agents", false,
    		"Access Istiod via the tap service of each agent")
    	statusCmd.PersistentFlags().IntVar(&multiXdsOpts.XdsViaAgentsLimit, "xds-via-agents-limit", 100,
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. istioctl/pkg/admin/admin.go

    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			cmd.HelpFunc()(cmd, args)
    			return nil
    		},
    	}
    
    	istiodLog := istiodLogCmd(ctx)
    	adminCmd.AddCommand(istiodLog)
    	adminCmd.PersistentFlags().StringVarP(&istiodLabelSelector, "selector", "l", "app=istiod", "label selector")
    
    	return adminCmd
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. istioctl/pkg/clioptions/control_plane.go

    	Revision string
    }
    
    // AttachControlPlaneFlags attaches control-plane flags to a Cobra command.
    // (Currently just --revision)
    func (o *ControlPlaneOptions) AttachControlPlaneFlags(cmd *cobra.Command) {
    	cmd.PersistentFlags().StringVarP(&o.Revision, "revision", "r", "",
    		"Control plane revision")
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 01 05:47:27 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  6. istioctl/cmd/options.go

    	}
    
    	retval.SetHelpFunc(func(c *cobra.Command, args []string) {
    		c.Printf("The following options can be passed to any command:\n")
    		// (Currently the only global options we show are help options)
    		rootCmd.PersistentFlags().VisitAll(func(flag *pflag.Flag) {
    			if _, ok := helpFlags[flag.Name]; ok {
    				// Currently every flag.Shorthand is "", so there is no point in showing shorthands
    				shorthand := "   "
    				if flag.Shorthand != "" {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. istioctl/cmd/root.go

    		PersistentPreRunE: ConfigureLogging,
    		Long: `Istio configuration command line utility for service operators to
    debug and diagnose their Istio mesh.
    `,
    	}
    
    	rootCmd.SetArgs(args)
    
    	flags := rootCmd.PersistentFlags()
    	rootOptions := cli.AddRootFlags(flags)
    
    	ctx := cli.NewCLIContext(rootOptions)
    
    	_ = rootCmd.RegisterFlagCompletionFunc(cli.FlagIstioNamespace, func(
    		cmd *cobra.Command, args []string, toComplete string,
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Aug 05 02:08:47 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. istioctl/pkg/internaldebug/internal-debug.go

    			return sw.PrintAll(xdsResponses)
    		},
    	}
    
    	opts.AttachControlPlaneFlags(debugCommand)
    	centralOpts.AttachControlPlaneFlags(debugCommand)
    	debugCommand.Long += "\n\n" + util.ExperimentalMsg
    	debugCommand.PersistentFlags().BoolVar(&internalDebugAllIstiod, "all", false,
    		"Send the same request to all instances of Istiod. Only applicable for in-cluster deployment.")
    	return debugCommand
    }
    
    var internalDebugAllIstiod bool
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jul 12 11:30:24 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. istioctl/pkg/checkinject/checkinject.go

    			checkResults := analyzeRunningWebhooks(whs.Items, podLabels, nsLabels)
    			return printCheckInjectorResults(cmd.OutOrStdout(), checkResults)
    		},
    		ValidArgsFunction: completion.ValidPodsNameArgs(ctx),
    	}
    	cmd.PersistentFlags().StringVarP(&labelPairs, "labels", "l", "",
    		"Check namespace and label pairs injection status, split multiple labels by commas")
    	return cmd
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. istioctl/pkg/authz/authz.go

    			analyzer, err := NewAnalyzer(configDump)
    			if err != nil {
    				return err
    			}
    			analyzer.Print(cmd.OutOrStdout())
    			return nil
    		},
    		ValidArgsFunction: completion.ValidPodsNameArgs(ctx),
    	}
    	cmd.PersistentFlags().StringVarP(&configDumpFile, "file", "f", "",
    		"The json file with Envoy config dump to be checked")
    	return cmd
    }
    
    func getConfigDumpFromFile(filename string) (*configdump.Wrapper, error) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top