Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for PersistentPreRunE (0.24 sec)

  1. pkg/test/framework/components/istioctl/kube.go

    	// It happens to do this via PersistentPreRunE, which we can disable.
    	// We add an additional check in case someone refactors this away, to ensure we don't wipe out non-logging code.
    	if fmt.Sprintf("%p", rootCmd.PersistentPreRunE) != fmt.Sprintf("%p", cmd.ConfigureLogging) {
    		log.Fatalf("istioctl PersistentPreRunE is not configuring logging")
    	}
    	rootCmd.PersistentPreRunE = nil
    	fErr := rootCmd.Execute()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 29 02:29:02 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. operator/cmd/operator/root.go

    // getRootCmd returns the root of the cobra command-tree.
    func getRootCmd(args []string) *cobra.Command {
    	rootCmd := &cobra.Command{
    		Use:   "operator",
    		Short: "The Istio operator.",
    		Args:  cobra.ExactArgs(0),
    		PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
    			return nil
    		},
    	}
    	rootCmd.SetArgs(args)
    	rootCmd.PersistentFlags().AddGoFlagSet(flag.CommandLine)
    
    	rootCmd.AddCommand(serverCmd())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 03:51:36 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/cmd.go

    			    └──────────────────────────────────────────────────────────┘
    
    			    You can then repeat the second step on as many other machines as you like.
    
    		`),
    		SilenceErrors: true,
    		SilenceUsage:  true,
    		PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
    			if rootfsPath != "" {
    				if err := kubeadmutil.Chroot(rootfsPath); err != nil {
    					return err
    				}
    			}
    			return nil
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 17 14:40:46 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  4. istioctl/pkg/kubeinject/kubeinject.go

    			}
    			return retval
    		},
    		PersistentPreRunE: func(c *cobra.Command, args []string) error {
    			// istioctl kube-inject is typically redirected to a .yaml file;
    			// the default for log messages should be stderr, not stdout
    			root := c.Root()
    			if root != nil {
    				_ = c.Root().PersistentFlags().Set("log_target", "stderr")
    			}
    			if c.Parent() != nil && c.Parent().PersistentPreRunE != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 29 02:29:02 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  5. pkg/test/echo/cmd/server/main.go

    	rootCmd = &cobra.Command{
    		Use:               "server",
    		Short:             "Echo server application.",
    		SilenceUsage:      true,
    		Long:              `Echo application for testing Istio E2E`,
    		PersistentPreRunE: configureLogging,
    		Run: func(cmd *cobra.Command, args []string) {
    			ports := make(common.PortList, len(httpPorts)+len(grpcPorts)+len(tcpPorts)+len(udpPorts)+len(hbonePorts))
    			tlsByPort := map[int]bool{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. istioctl/cmd/root.go

    func GetRootCmd(args []string) *cobra.Command {
    	rootCmd := &cobra.Command{
    		Use:               "istioctl",
    		Short:             "Istio control interface.",
    		SilenceUsage:      true,
    		DisableAutoGenTag: true,
    		PersistentPreRunE: ConfigureLogging,
    		Long: `Istio configuration command line utility for service operators to
    debug and diagnose their Istio mesh.
    `,
    	}
    
    	rootCmd.SetArgs(args)
    
    	flags := rootCmd.PersistentFlags()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 15:59:33 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. pkg/test/echo/cmd/client/main.go

    In general, Echo's gRPC interface (ForwardEcho) should be preferred. This client is only needed in cases
    where the network configuration doesn't support gRPC to the source pod.'
    `,
    		Args:              cobra.ExactArgs(1),
    		PersistentPreRunE: configureLogging,
    		Run: func(cmd *cobra.Command, args []string) {
    			expectSet = cmd.Flags().Changed("expect")
    			// Create a request from the flags.
    			request, err := getRequest(args[0])
    			if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  8. cmd/kube-apiserver/app/server.go

    others. The API Server services REST operations and provides the frontend to the
    cluster's shared state through which all other components interact.`,
    
    		// stop printing usage when the command errors
    		SilenceUsage: true,
    		PersistentPreRunE: func(*cobra.Command, []string) error {
    			// silence client-go warnings.
    			// kube-apiserver loopback clients should not log self-issued warnings.
    			rest.SetDefaultWarningHandler(rest.NoWarnings{})
    			return nil
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 17:44:20 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. pilot/cmd/pilot-agent/app/cmd.go

    	return &cobra.Command{
    		Use:   "proxy",
    		Short: "XDS proxy agent",
    		FParseErrWhitelist: cobra.FParseErrWhitelist{
    			// Allow unknown flags for backward-compatibility.
    			UnknownFlags: true,
    		},
    		PersistentPreRunE: configureLogging,
    		RunE: func(c *cobra.Command, args []string) error {
    			cmd.PrintFlags(c.Flags())
    			log.Infof("Version %s", version.Info.String())
    
    			raiseLimits()
    
    			err := initProxy(args)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  10. cmd/kube-controller-manager/app/controllermanager.go

    current state towards the desired state. Examples of controllers that ship with
    Kubernetes today are the replication controller, endpoints controller, namespace
    controller, and serviceaccounts controller.`,
    		PersistentPreRunE: func(*cobra.Command, []string) error {
    			// silence client-go warnings.
    			// kube-controller-manager generically watches APIs (including deprecated ones),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 13:03:53 UTC 2024
    - 37.5K bytes
    - Viewed (0)
Back to top