Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 967 for Iflag (0.04 sec)

  1. cmd/kube-scheduler/app/options/deprecated.go

    	// This issue only could happen if you use custom plugins or if you change plugin set being used in your scheduler via the scheduler config.
    	// TODO: remove this flag once https://github.com/kubernetes/kubernetes/issues/110175 is done.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 23 13:24:38 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/util/cmdutil.go

    	}
    	return kubeconfigutil.ClientSetFromFile(file)
    }
    
    // ValueFromFlagsOrConfig checks if the "name" flag has been set. If yes, it returns the value of the flag, otherwise it returns the value from config.
    func ValueFromFlagsOrConfig(flagSet *pflag.FlagSet, name string, cfgValue interface{}, flagValue interface{}) interface{} {
    	if flagSet.Changed(name) {
    		return flagValue
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. pkg/util/flag/flags_test.go

    			expectVal: "1.2.3.4",
    		},
    		{
    			argc:      "blah --ip=1.2.3.4a",
    			expectErr: true,
    			expectVal: defaultIP,
    		},
    	}
    	for _, tc := range testCases {
    		fs := pflag.NewFlagSet("blah", pflag.PanicOnError)
    		ip := defaultIP
    		fs.Var(&IPVar{&ip}, "ip", "the ip")
    
    		var err error
    		func() {
    			defer func() {
    				if r := recover(); r != nil {
    					err = r.(error)
    				}
    			}()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 14 10:45:23 UTC 2021
    - 8.8K bytes
    - Viewed (0)
  4. cmd/kubelet/app/options/globalflags_linux.go

    	_ "github.com/google/cadvisor/storage"
    )
    
    // addCadvisorFlags adds flags from cadvisor
    func addCadvisorFlags(fs *pflag.FlagSet) {
    	// lookup flags in global flag set and re-register the values with our flagset
    	global := flag.CommandLine
    	local := pflag.NewFlagSet(os.Args[0], pflag.ExitOnError)
    
    	// e2e node tests rely on this
    	register(global, local, "housekeeping_interval")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 07 20:15:13 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/kubeadm.go

    		switch f.Name {
    		case "v", "add_dir_header", "skip_headers":
    			flag.CommandLine.Var(f.Value, f.Name, f.Usage)
    		}
    	})
    
    	pflag.CommandLine.SetNormalizeFunc(cliflag.WordSepNormalizeFunc)
    	pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
    
    	cmd := cmd.NewKubeadmCommand(os.Stdin, os.Stdout, os.Stderr)
    	return cmd.Execute()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 04:38:21 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. src/debug/gosym/symtab_test.go

    	s1 := Sym{Name: "github.com/docker/doc.ker/pkg/mflag.(*FlagSet).PrintDefaults"}
    	s2 := Sym{Name: "github.com/docker/doc.ker/pkg/mflag.PrintDefaults"}
    	assertString(t, fmt.Sprintf("package of %q", s1.Name), s1.PackageName(), "github.com/docker/doc.ker/pkg/mflag")
    	assertString(t, fmt.Sprintf("package of %q", s2.Name), s2.PackageName(), "github.com/docker/doc.ker/pkg/mflag")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 11:28:56 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  7. pkg/flag/flag_test.go

    	}
    	opts := Options{
    		B: "b-def",
    	}
    	test.SetEnvForTest(t, "TEST_ENV", "from-env")
    	fs := pflag.NewFlagSet("test", pflag.ContinueOnError)
    	Bind(fs, "a", "", "desc", &opts.A)
    	Bind(fs, "bool", "", "desc", &opts.Bool)
    	BindEnv(fs, "test-env", "", "desc", &opts.Env)
    	fs.Set("a", "a-set")
    	fs.Set("bool", "true")
    	assert.Equal(t, opts, Options{
    		A:    "a-set",
    		B:    "b-def",
    		Env:  "from-env",
    		Bool: true,
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 01 04:37:36 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/phases/workflow/runner.go

    }
    
    func inheritsFlags(sourceFlags, targetFlags *pflag.FlagSet, cmdFlags []string) {
    	// If the list of flag to be inherited from the parent command is not defined, no flag is added
    	if cmdFlags == nil {
    		return
    	}
    
    	// add all the flags to be inherited to the target flagSet
    	sourceFlags.VisitAll(func(f *pflag.Flag) {
    		for _, c := range cmdFlags {
    			if f.Name == c {
    				targetFlags.AddFlag(f)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 21 05:35:15 UTC 2022
    - 16K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/init/addons.go

    func NewAddonPhase() workflow.Phase {
    	dnsLocalFlags := pflag.NewFlagSet(options.PrintManifest, pflag.ContinueOnError)
    	dnsLocalFlags.BoolVar(&printManifest, options.PrintManifest, printManifest, "Print the addon manifests to STDOUT instead of installing them")
    
    	proxyLocalFlags := pflag.NewFlagSet(options.PrintManifest, pflag.ContinueOnError)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. cmd/admin-router.go

    // Set of handler options as bit flags
    type hFlag uint8
    
    const (
    	// this flag disables gzip compression of responses
    	noGZFlag = 1 << iota
    
    	// this flag enables tracing body and headers instead of just headers
    	traceAllFlag
    
    	// pass this flag to skip checking if object layer is available
    	noObjLayerFlag
    )
    
    // Has checks if the given flag is enabled in `h`.
    func (h hFlag) Has(flag hFlag) bool {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 10 21:09:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top