Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 183 for cobra (0.04 sec)

  1. operator/cmd/mesh/operator-remove.go

    }
    
    func operatorRemoveCmd(ctx cli.Context, rootArgs *RootArgs, orArgs *operatorRemoveArgs) *cobra.Command {
    	return &cobra.Command{
    		Use:   "remove",
    		Short: "Removes the Istio operator controller from the cluster.",
    		Long:  "The remove subcommand removes the Istio operator controller from the cluster.",
    		Args: func(cmd *cobra.Command, args []string) error {
    			if orArgs.revision == "" && !orArgs.purge {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. istioctl/pkg/clioptions/control_plane.go

    package clioptions
    
    import "github.com/spf13/cobra"
    
    // ControlPlaneOptions defines common options used by istioctl.
    type ControlPlaneOptions struct {
    	// Revision is the istio.io/rev control plane revision
    	Revision string
    }
    
    // AttachControlPlaneFlags attaches control-plane flags to a Cobra command.
    // (Currently just --revision)
    func (o *ControlPlaneOptions) AttachControlPlaneFlags(cmd *cobra.Command) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 01 05:47:27 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  3. operator/cmd/mesh/manifest-diff.go

    			"e.g. Service:*:istiod->Service:*:istio-control - rename istiod service into istio-control")
    }
    
    func manifestDiffCmd(diffArgs *manifestDiffArgs) *cobra.Command {
    	cmd := &cobra.Command{
    		Use:   "diff <file|dir> <file|dir>",
    		Short: "Compare manifests and generate diff",
    		Long: "The diff subcommand compares manifests from two files or directories. The output is a list of\n" +
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. istioctl/pkg/proxystatus/proxystatus.go

    	data, err := io.ReadAll(file)
    	if err != nil {
    		return nil, err
    	}
    	return data, nil
    }
    
    func StableXdsStatusCommand(ctx cli.Context) *cobra.Command {
    	cmd := XdsStatusCommand(ctx)
    	unstableFlags := []string{"xds-via-agents", "xds-via-agents-limit"}
    	cmd.PreRunE = func(cmd *cobra.Command, args []string) error {
    		for _, flag := range unstableFlags {
    			if cmd.PersistentFlags().Changed(flag) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. pkg/cmd/flag_test.go

    package cmd
    
    import (
    	"flag"
    	"testing"
    	"time"
    
    	"github.com/spf13/cobra"
    	"github.com/spf13/pflag"
    )
    
    const (
    	defaultInt = 100
    
    	defaultString = "my default string"
    
    	defaultBool = true
    
    	defaultDuration = 24 * time.Hour
    )
    
    func TestInitializeIntFlag(t *testing.T) {
    	cmd := &cobra.Command{}
    	var testInt int
    	flag.IntVar(&testInt, "testint", defaultInt, "test int flag")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 29 20:42:01 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  6. cmd/kube-apiserver/app/server.go

    )
    
    func init() {
    	utilruntime.Must(logsapi.AddFeatureGates(utilfeature.DefaultMutableFeatureGate))
    }
    
    // NewAPIServerCommand creates a *cobra.Command object with default parameters
    func NewAPIServerCommand() *cobra.Command {
    	s := options.NewServerRunOptions()
    	cmd := &cobra.Command{
    		Use: "kube-apiserver",
    		Long: `The Kubernetes API server validates and configures data
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 17:44:20 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/upgrade/node.go

    	outputWriter          io.Writer
    }
    
    // newCmdNode returns the cobra command for `kubeadm upgrade node`
    func newCmdNode(out io.Writer) *cobra.Command {
    	nodeOptions := newNodeOptions()
    	nodeRunner := workflow.NewRunner()
    
    	cmd := &cobra.Command{
    		Use:   "node",
    		Short: "Upgrade commands for a node in the cluster",
    		RunE: func(cmd *cobra.Command, args []string) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. istioctl/pkg/injector/injector-list.go

    	needsRestart int
    }
    
    func Cmd(cliContext cli.Context) *cobra.Command {
    	cmd := &cobra.Command{
    		Use:     "injector",
    		Short:   "List sidecar injector and sidecar versions",
    		Long:    `List sidecar injector and sidecar versions`,
    		Example: `  istioctl experimental injector list`,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 04 03:08:06 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. istioctl/pkg/wait/wait.go

    	verbose      bool
    	targetSchema resource.Schema
    )
    
    const pollInterval = time.Second
    
    // Cmd represents the wait command
    func Cmd(cliCtx cli.Context) *cobra.Command {
    	namespace := cliCtx.Namespace()
    	var opts clioptions.ControlPlaneOptions
    	cmd := &cobra.Command{
    		Use:   "wait [flags] <type> <name>[.<namespace>]",
    		Short: "Wait for an Istio resource",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 17 12:24:17 UTC 2024
    - 10.1K bytes
    - Viewed (1)
  10. pilot/cmd/pilot-agent/app/wait.go

    import (
    	"fmt"
    	"io"
    	"net/http"
    	"time"
    
    	"github.com/spf13/cobra"
    
    	"istio.io/istio/pkg/log"
    )
    
    var (
    	timeoutSeconds       int
    	requestTimeoutMillis int
    	periodMillis         int
    	url                  string
    
    	waitCmd = &cobra.Command{
    		Use:   "wait",
    		Short: "Waits until the Envoy proxy is ready",
    		RunE: func(c *cobra.Command, args []string) error {
    			client := &http.Client{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top