- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 875 for Iflag (0.09 sec)
-
cmd/kubeadm/app/cmd/options/generic.go
*/ package options import ( "strings" "github.com/spf13/pflag" cliflag "k8s.io/component-base/cli/flag" "k8s.io/kubernetes/cmd/kubeadm/app/constants" "k8s.io/kubernetes/cmd/kubeadm/app/features" ) // AddKubeConfigFlag adds the --kubeconfig flag to the given flagset func AddKubeConfigFlag(fs *pflag.FlagSet, kubeConfigFile *string) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 10:21:20 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/kubelet/app/options/globalflags_other.go
See the License for the specific language governing permissions and limitations under the License. */ package options import ( "github.com/spf13/pflag" ) func addCadvisorFlags(fs *pflag.FlagSet) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 707 bytes - Viewed (0) -
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) -
pkg/util/flag/flags.go
) // TODO(mikedanese): remove these flag wrapper types when we remove command line flags var ( _ pflag.Value = &IPVar{} _ pflag.Value = &IPPortVar{} _ pflag.Value = &PortRangeVar{} _ pflag.Value = &ReservedMemoryVar{} _ pflag.Value = &RegisterWithTaintsVar{} ) // IPVar is used for validating a command line option that represents an IP. It implements the pflag.Value interface type IPVar struct { Val *string }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 19 03:30:46 UTC 2022 - 7.8K bytes - Viewed (0) -
istioctl/pkg/util/formatting/msg_threshold.go
// It should satisfy the pflag.Value interface. type MessageThreshold struct { diag.Level } // String is a function declared in the pflag.Value interface func (m *MessageThreshold) String() string { return m.Level.String() } // Type is a function declared in the pflag.Value interface func (m *MessageThreshold) Type() string { return "Level" }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 17 12:28:05 UTC 2021 - 1.4K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)