Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 183 for cobra (0.04 sec)

  1. cmd/kubeadm/test/cmd/util.go

    func RunSubCommand(t *testing.T, subCmds []*cobra.Command, command string, output io.Writer, args ...string) error {
    	subCmd := getSubCommand(t, subCmds, command)
    	subCmd.SetOut(output)
    	subCmd.SetArgs(args)
    	if err := subCmd.Execute(); err != nil {
    		return err
    	}
    	return nil
    }
    
    func getSubCommand(t *testing.T, subCmds []*cobra.Command, name string) *cobra.Command {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 01 12:47:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/kubeconfig.go

    func newCmdKubeConfigUtility(out io.Writer) *cobra.Command {
    	cmd := &cobra.Command{
    		Use:   "kubeconfig",
    		Short: "Kubeconfig file utilities",
    		Long:  kubeconfigLongDesc,
    	}
    
    	cmd.AddCommand(newCmdUserKubeConfig(out))
    	return cmd
    }
    
    // newCmdUserKubeConfig returns sub commands for kubeconfig phase
    func newCmdUserKubeConfig(out io.Writer) *cobra.Command {
    
    	initCfg := &kubeadmapiv1.InitConfiguration{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. operator/cmd/mesh/upgrade.go

    // limitations under the License.
    
    package mesh
    
    import (
    	"github.com/spf13/cobra"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/operator/pkg/util/clog"
    )
    
    type upgradeArgs struct {
    	*InstallArgs
    }
    
    // UpgradeCmd upgrades Istio control plane in-place with eligibility checks.
    func UpgradeCmd(ctx cli.Context) *cobra.Command {
    	rootArgs := &RootArgs{}
    	upgradeArgs := &upgradeArgs{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. operator/cmd/mesh/verify.go

    )
    
    // NewVerifyCommand creates a new command for verifying Istio Installation Status
    func NewVerifyCommand(ctx cli.Context) *cobra.Command {
    	var (
    		filenames     = []string{}
    		opts          clioptions.ControlPlaneOptions
    		manifestsPath string
    	)
    	verifyInstallCmd := &cobra.Command{
    		Use:   "verify-install [-f <deployment or istio operator file>] [--revision <revision>]",
    		Short: "Verifies Istio Installation Status",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 28 16:26:13 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. pilot/cmd/pilot-agent/app/request.go

    // which interprets the output literally as json document.
    var (
    	requestCmd = &cobra.Command{
    		Use:   "request <method> <path> [<body>]",
    		Short: "Makes an HTTP request to the Envoy admin API",
    		Args:  cobra.MinimumNArgs(2),
    		PreRunE: func(cmd *cobra.Command, args []string) error {
    			if !allowedPorts.Contains(debugRequestPort) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 08 03:13:05 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. istioctl/cmd/root_test.go

    	)
    	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",
    		Run: func(c *cobra.Command, args []string) {},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 15 17:59:55 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  7. operator/cmd/mesh/operator-init.go

    }
    
    func operatorInitCmd(ctx cli.Context, rootArgs *RootArgs, oiArgs *operatorInitArgs) *cobra.Command {
    	return &cobra.Command{
    		Use:   "init",
    		Short: "Installs the Istio operator controller in the cluster.",
    		Long:  "The init subcommand installs the Istio operator controller in the cluster.",
    		Args:  cobra.ExactArgs(0),
    		PreRunE: func(cmd *cobra.Command, args []string) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. istioctl/pkg/proxyconfig/clusters.go

    	"fmt"
    	"io"
    	"text/tabwriter"
    
    	"github.com/spf13/cobra"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/clioptions"
    	"istio.io/istio/pkg/cluster"
    )
    
    // TODO move to multicluster package; requires exposing some private funcs/vars in this package
    func ClustersCommand(ctx cli.Context) *cobra.Command {
    	var opts clioptions.ControlPlaneOptions
    	cmd := &cobra.Command{
    		Use:   "remote-clusters",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. operator/cmd/mesh/root.go

    	DryRun bool
    }
    
    func addFlags(cmd *cobra.Command, rootArgs *RootArgs) {
    	cmd.PersistentFlags().BoolVarP(&rootArgs.DryRun, "dry-run", "",
    		false, "Console/log output only, make no changes.")
    }
    
    // GetRootCmd returns the root of the cobra command-tree.
    func GetRootCmd(ctx cli.Context, args []string) *cobra.Command {
    	rootCmd := &cobra.Command{
    		Use:          "mesh",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/phases/workflow/phase.go

    	// InheritFlags defines the list of flags that the cobra command generated for this phase should Inherit
    	// from local flags defined in the parent command / or additional flags defined in the phase runner.
    	// If the values is not set or empty, no flags will be assigned to the command
    	// Nb. global flags are automatically inherited by nested cobra command
    	InheritFlags []string
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 26 15:35:58 UTC 2022
    - 3.2K bytes
    - Viewed (0)
Back to top