- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 59 for AddFlags (0.35 sec)
-
operator/cmd/mesh/root.go
) type RootArgs struct { // DryRun performs all steps except actually applying the manifests or creating output dirs/files. 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.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 01:18:49 UTC 2024 - 3.9K bytes - Viewed (0) -
cmd/kubemark/app/hollow_node.go
podsPerCore = 0 ) // TODO(#45650): Refactor hollow-node into hollow-kubelet and hollow-proxy // and make the config driven. var knownMorphs = sets.NewString("kubelet", "proxy") func (c *hollowNodeConfig) addFlags(fs *pflag.FlagSet) { fs.StringVar(&c.KubeconfigPath, "kubeconfig", "/kubeconfig/kubeconfig", "Path to kubeconfig file.") fs.StringVar(&c.BootstrapKubeconfigPath, "bootstrap-kubeconfig", "", "Path to bootstrap kubeconfig file.")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 11K bytes - Viewed (0) -
cmd/kubelet/app/options/options.go
return err } return nil } // AddFlags adds flags for a specific KubeletServer to the specified FlagSet func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) { s.KubeletFlags.AddFlags(fs) AddKubeletConfigFlags(fs, &s.KubeletConfiguration) } // AddFlags adds flags for a specific KubeletFlags to the specified FlagSet func (f *KubeletFlags) AddFlags(mainfs *pflag.FlagSet) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 07:00:05 UTC 2024 - 41.6K bytes - Viewed (0) -
pkg/collateral/control.go
flags.SetOutput(g.buffer) parentFlags := cmd.InheritedFlags() parentFlags.SetOutput(g.buffer) if flags.HasFlags() || parentFlags.HasFlags() { f := make(map[string]*pflag.Flag) addFlags(f, flags) addFlags(f, parentFlags) if len(f) > 0 { names := make([]string, len(f)) i := 0 for n := range f { names[i] = n i++ } sort.Strings(names)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 10 03:51:36 UTC 2024 - 17.8K bytes - Viewed (0) -
pkg/kubeapiserver/options/authorization_test.go
Factor: 1.5, Jitter: 0.2, Steps: 5, }, } opts := NewBuiltInAuthorizationOptions() pf := pflag.NewFlagSet("test-builtin-authorization-opts", pflag.ContinueOnError) opts.AddFlags(pf) if err := pf.Parse(args); err != nil { t.Fatal(err) } if !opts.AreLegacyFlagsSet() { t.Fatal("legacy flags should have been configured") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 18 06:28:47 UTC 2023 - 6.4K bytes - Viewed (0) -
pkg/kubeapiserver/options/authentication.go
} } if o.RequestHeader != nil { allErrors = append(allErrors, o.RequestHeader.Validate()...) } return allErrors } // AddFlags returns flags of authentication for a API Server func (o *BuiltInAuthenticationOptions) AddFlags(fs *pflag.FlagSet) { if o == nil { return } fs.StringSliceVar(&o.APIAudiences, "api-audiences", o.APIAudiences, ""+
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 22:40:22 UTC 2024 - 32.4K bytes - Viewed (0) -
istioctl/pkg/multicluster/remote_secret_test.go
o := RemoteSecretOptions{} flags := pflag.NewFlagSet("test", pflag.ContinueOnError) o.addFlags(flags) g.Expect(flags.Parse([]string{ "--name", "valid-name", })).Should(Succeed()) g.Expect(o.prepare(ctx)).Should(Succeed()) o = RemoteSecretOptions{} flags = pflag.NewFlagSet("test", pflag.ContinueOnError) o.addFlags(flags) g.Expect(flags.Parse([]string{ "--name", "?-invalid-name",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 20.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/etcd.go
} return allErrors } // AddFlags adds flags related to etcd storage for a specific APIServer to the specified FlagSet func (s *EtcdOptions) AddFlags(fs *pflag.FlagSet) { if s == nil { return } fs.StringSliceVar(&s.EtcdServersOverrides, "etcd-servers-overrides", s.EtcdServersOverrides, ""+
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 15:02:16 UTC 2024 - 20K bytes - Viewed (0) -
pkg/kubeapiserver/options/authentication_test.go
TokenFailureCacheTTL: 0 * time.Second, } opts := NewBuiltInAuthenticationOptions().WithAll() pf := pflag.NewFlagSet("test-builtin-authentication-opts", pflag.ContinueOnError) opts.AddFlags(pf) if err := pf.Parse(args); err != nil { t.Fatal(err) } if !opts.OIDC.areFlagsConfigured() { t.Fatal("OIDC flags should be configured") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 36.5K bytes - Viewed (0) -
tools/bug-report/pkg/bugreport/flags.go
included, excluded []string commandTimeout, since time.Duration gConfig = &config2.BugReportConfig{} ) func addFlags(cmd *cobra.Command, args *config2.BugReportConfig) { // k8s client config cmd.PersistentFlags().StringVarP(&args.KubeConfigPath, "kubeconfig", "c", "", "Path to kube config.")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Nov 04 12:07:50 UTC 2023 - 7.3K bytes - Viewed (0)