Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 183 for cobra (0.05 sec)

  1. cmd/kubeadm/app/cmd/phases/join/controlplanejoin.go

    				RunAllSiblings: true,
    				ArgsValidator:  cobra.NoArgs,
    			},
    			newEtcdLocalSubphase(),
    			newMarkControlPlaneSubphase(),
    		},
    	}
    }
    
    func newEtcdLocalSubphase() workflow.Phase {
    	return workflow.Phase{
    		Name:          "etcd",
    		Short:         "Add a new local etcd member",
    		Run:           runEtcdPhase,
    		InheritFlags:  getControlPlaneJoinPhaseFlags("etcd"),
    		ArgsValidator: cobra.NoArgs,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:09:42 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/record_flags.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package genericclioptions
    
    import (
    	"os"
    	"path/filepath"
    	"strings"
    
    	"github.com/spf13/cobra"
    	"github.com/spf13/pflag"
    	jsonpatch "gopkg.in/evanphx/json-patch.v4"
    
    	"k8s.io/apimachinery/pkg/api/meta"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/util/json"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. operator/cmd/mesh/profile-dump.go

    }
    
    func profileDumpCmd(pdArgs *profileDumpArgs) *cobra.Command {
    	return &cobra.Command{
    		Use:   "dump [<profile>]",
    		Short: "Dumps an Istio configuration profile",
    		Long:  "The dump subcommand dumps the values in an Istio configuration profile.",
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) > 1 {
    				return fmt.Errorf("too many positional arguments")
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. operator/cmd/operator/server.go

    }
    
    func serverCmd() *cobra.Command {
    	loggingOptions := log.DefaultOptions()
    	introspectionOptions := ctrlz.DefaultOptions()
    	sArgs := &serverArgs{}
    	serverCmd := &cobra.Command{
    		Use:   "server",
    		Short: "Starts the Istio operator server",
    		Args:  cobra.ExactArgs(0),
    		RunE: func(cmd *cobra.Command, args []string) error {
    			if err := log.Configure(loggingOptions); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 30 21:09:08 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/json_yaml_flags.go

    	}
    
    	if !f.ShowManagedFields {
    		printer = &printers.OmitManagedFieldsPrinter{Delegate: printer}
    	}
    	return printer, nil
    }
    
    // AddFlags receives a *cobra.Command reference and binds
    // flags related to JSON or Yaml printing to it
    func (f *JSONYamlPrintFlags) AddFlags(c *cobra.Command) {
    	if f == nil {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 04 13:00:03 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/jsonpath_flags.go

    	if templateFormat == "jsonpath-as-json" {
    		p.EnableJSONOutput(true)
    	}
    
    	return p, nil
    }
    
    // AddFlags receives a *cobra.Command reference and binds
    // flags related to template printing to it
    func (f *JSONPathPrintFlags) AddFlags(c *cobra.Command) {
    	if f.TemplateArgument != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/completion.go

    func newCmdCompletion(out io.Writer, boilerPlate string) *cobra.Command {
    	cmd := &cobra.Command{
    		Use:     "completion SHELL",
    		Short:   "Output shell completion code for the specified shell (bash or zsh)",
    		Long:    completionLong,
    		Example: completionExample,
    		RunE: func(cmd *cobra.Command, args []string) error {
    			return RunCompletion(out, boilerPlate, cmd, args)
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 25 09:28:34 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  8. cmd/kubemark/app/hollow_node.go

    	}
    }
    
    // NewHollowNodeCommand creates a *cobra.Command object with default parameters
    func NewHollowNodeCommand() *cobra.Command {
    	s := &hollowNodeConfig{
    		NodeLabels:        make(map[string]string),
    		ExtendedResources: make(map[string]string),
    	}
    
    	cmd := &cobra.Command{
    		Use:  "kubemark",
    		Long: "kubemark",
    		RunE: func(cmd *cobra.Command, args []string) error {
    			verflag.PrintAndExitIfRequested()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. istioctl/pkg/checkinject/checkinject.go

    	"istio.io/istio/istioctl/pkg/util"
    	"istio.io/istio/istioctl/pkg/writer/table"
    	analyzer_util "istio.io/istio/pkg/config/analysis/analyzers/util"
    )
    
    var labelPairs string
    
    func Cmd(ctx cli.Context) *cobra.Command {
    	cmd := &cobra.Command{
    		Use:   "check-inject [<type>/]<name>[.<namespace>]",
    		Short: "Check the injection status or inject-ability of a given resource, explains why it is (or will be) injected or not",
    		Long: `
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/phases/workflow/runner.go

    	fn(e.cmdAdditionalFlags)
    }
    
    // BindToCommand bind the Runner to a cobra command by altering
    // command help, adding phase related flags and by adding phases subcommands
    // Please note that this command needs to be done once all the phases are added to the Runner.
    func (e *Runner) BindToCommand(cmd *cobra.Command) {
    	// keep track of the command triggering the runner
    	e.runCmd = cmd
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 21 05:35:15 UTC 2022
    - 16K bytes
    - Viewed (0)
Back to top