Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for cobra (0.06 sec)

  1. istioctl/pkg/completion/completion.go

    		return nil, cobra.ShellCompDirectiveNoFileComp
    	}
    	return nsName, cobra.ShellCompDirectiveNoFileComp
    }
    
    func ValidServiceAccountArgs(_ *cobra.Command, ctx cli.Context, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
    	if len(args) != 0 {
    		return nil, cobra.ShellCompDirectiveNoFileComp
    	}
    	client, err := ctx.CLIClient()
    	if err != nil {
    		return nil, cobra.ShellCompDirectiveNoFileComp
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. pkg/ctrlz/options.go

    		Port:    9876,
    		Address: "localhost",
    	}
    }
    
    // AttachCobraFlags attaches a set of Cobra flags to the given Cobra command.
    //
    // Cobra is the command-line processor that Istio uses. This command attaches
    // the necessary set of flags to expose a CLI to let the user control all
    // introspection options.
    func (o *Options) AttachCobraFlags(cmd *cobra.Command) {
    	cmd.PersistentFlags().Uint16Var(&o.Port, "ctrlz_port", o.Port,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 21:42:29 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. istioctl/cmd/root.go

    	_ = rootCmd.RegisterFlagCompletionFunc(cli.FlagIstioNamespace, func(
    		cmd *cobra.Command, args []string, toComplete string,
    	) ([]string, cobra.ShellCompDirective) {
    		return completion.ValidNamespaceArgs(cmd, ctx, args, toComplete)
    	})
    	_ = rootCmd.RegisterFlagCompletionFunc(cli.FlagNamespace, func(
    		cmd *cobra.Command, args []string, toComplete string,
    	) ([]string, cobra.ShellCompDirective) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 15:59:33 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/config.go

    	"k8s.io/kubernetes/cmd/kubeadm/app/util/output"
    	utilruntime "k8s.io/kubernetes/cmd/kubeadm/app/util/runtime"
    )
    
    // newCmdConfig returns cobra.Command for "kubeadm config" command
    func newCmdConfig(out io.Writer) *cobra.Command {
    	var kubeConfigFile string
    
    	cmd := &cobra.Command{
    		Use:   "config",
    		Short: "Manage configuration for a kubeadm cluster persisted in a ConfigMap in the cluster",
    		Long: fmt.Sprintf(dedent.Dedent(`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  5. istioctl/pkg/proxyconfig/proxyconfig.go

    	err := cw.Prime(debug)
    	if err != nil {
    		return nil, err
    	}
    	return cw, nil
    }
    
    func clusterConfigCmd(ctx cli.Context) *cobra.Command {
    	var podName, podNamespace string
    
    	clusterConfigCmd := &cobra.Command{
    		Use:   "cluster [<type>/]<name>[.<namespace>]",
    		Short: "Retrieves cluster configuration for the Envoy in the specified pod",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 03:28:36 UTC 2024
    - 48K bytes
    - Viewed (0)
  6. tools/istio-clean-iptables/pkg/cmd/root.go

    }
    
    func GetCommand(logOpts *log.Options) *cobra.Command {
    	cfg := config.DefaultConfig()
    	cmd := &cobra.Command{
    		Use:   "istio-clean-iptables",
    		Short: "Clean up iptables rules for Istio Sidecar",
    		Long:  "Script responsible for cleaning up iptables rules",
    		PreRunE: func(cmd *cobra.Command, args []string) error {
    			if err := log.Configure(logOpts); err != nil {
    				return err
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. istioctl/pkg/dashboard/dashboard.go

    }
    
    func Dashboard(cliContext cli.Context) *cobra.Command {
    	dashboardCmd := &cobra.Command{
    		Use:     "dashboard",
    		Aliases: []string{"dash", "d"},
    		Short:   "Access to Istio web UIs",
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    				return fmt.Errorf("unknown dashboard %q", args[0])
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 01:29:35 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/certs.go

    }
    
    // newCmdGenCSR returns cobra.Command for generating keys and CSRs
    func newCmdGenCSR(out io.Writer) *cobra.Command {
    	config := newGenCSRConfig()
    
    	cmd := &cobra.Command{
    		Use:     "generate-csr",
    		Short:   "Generate keys and certificate signing requests",
    		Long:    generateCSRLongDesc,
    		Example: generateCSRExample,
    		Args:    cobra.NoArgs,
    		RunE: func(cmd *cobra.Command, args []string) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. pilot/cmd/pilot-discovery/app/cmd.go

    	return rootCmd
    }
    
    func newDiscoveryCommand() *cobra.Command {
    	return &cobra.Command{
    		Use:   "discovery",
    		Short: "Start Istio proxy discovery service.",
    		Args:  cobra.ExactArgs(0),
    		FParseErrWhitelist: cobra.FParseErrWhitelist{
    			// Allow unknown flags for backward-compatibility.
    			UnknownFlags: true,
    		},
    		PreRunE: func(c *cobra.Command, args []string) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. operator/cmd/mesh/profile-diff.go

    import (
    	"fmt"
    	"io"
    	"os"
    
    	"github.com/spf13/cobra"
    
    	"istio.io/istio/operator/pkg/manifest"
    	"istio.io/istio/operator/pkg/util"
    	"istio.io/istio/operator/pkg/util/clog"
    )
    
    type profileDiffArgs struct {
    	// manifestsPath is a path to a charts and profiles directory in the local filesystem with a release tgz.
    	manifestsPath string
    }
    
    func addProfileDiffFlags(cmd *cobra.Command, args *profileDiffArgs) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top