Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 59 for AddFlags (0.25 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/cmd/server/server.go

    			if err := o.Validate(); err != nil {
    				return err
    			}
    			if err := Run(c.Context(), o); err != nil {
    				return err
    			}
    			return nil
    		},
    	}
    	cmd.SetContext(ctx)
    
    	fs := cmd.Flags()
    	o.AddFlags(fs)
    	return cmd
    }
    
    func Run(ctx context.Context, o *options.CustomResourceDefinitionsServerOptions) error {
    	config, err := o.Config()
    	if err != nil {
    		return err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/record_flags.go

    func (f *RecordFlags) CompleteWithChangeCause(cause string) error {
    	if f == nil {
    		return nil
    	}
    
    	f.changeCause = cause
    	return nil
    }
    
    // AddFlags binds the requested flags to the provided flagset
    // TODO have this only take a flagset
    func (f *RecordFlags) AddFlags(cmd *cobra.Command) {
    	if f == nil {
    		return
    	}
    
    	if f.Record != nil {
    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/upgrade.go

    			client, err := ctx.CLIClient()
    			if err != nil {
    				return err
    			}
    			return Install(client, rootArgs, upgradeArgs.InstallArgs, cmd.OutOrStdout(), l, p)
    		},
    	}
    	addFlags(cmd, rootArgs)
    	addInstallFlags(cmd, upgradeArgs.InstallArgs)
    	return cmd
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. pilot/cmd/pilot-agent/app/cmd.go

    			UnknownFlags: true,
    		},
    	}
    
    	// Attach the Istio logging options to the command.
    	loggingOptions.AttachCobraFlags(rootCmd)
    
    	cmd.AddFlags(rootCmd)
    
    	proxyCmd := newProxyCommand(sds)
    	addFlags(proxyCmd)
    	rootCmd.AddCommand(proxyCmd)
    	rootCmd.AddCommand(requestCmd)
    	rootCmd.AddCommand(waitCmd)
    	rootCmd.AddCommand(version.CobraCommand())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. cmd/kube-apiserver/app/options/options.go

    	return &s
    }
    
    // Flags returns flags for a specific APIServer by section name
    func (s *ServerRunOptions) Flags() (fss cliflag.NamedFlagSets) {
    	s.Options.AddFlags(&fss)
    	s.CloudProvider.AddFlags(fss.FlagSet("cloud provider"))
    
    	// Note: the weird ""+ in below lines seems to be the only way to get gofmt to
    	// arrange these text blocks sensibly. Grrr.
    	fs := fss.FlagSet("misc")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/config_flags.go

    		if f.warningPrinter != nil {
    			f.warningPrinter.Print(a)
    		}
    	})
    	return expander, nil
    }
    
    // AddFlags binds client configuration flags to a given flagset
    func (f *ConfigFlags) AddFlags(flags *pflag.FlagSet) {
    	if f.KubeConfig != nil {
    		flags.StringVar(f.KubeConfig, "kubeconfig", *f.KubeConfig, "Path to the kubeconfig file to use for CLI requests.")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 11 15:04:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/options/feature.go

    		DebugSocketPath:           defaults.DebugSocketPath,
    		EnableContentionProfiling: defaults.EnableContentionProfiling,
    		EnablePriorityAndFairness: true,
    	}
    }
    
    func (o *FeatureOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    
    	fs.BoolVar(&o.EnableProfiling, "profiling", o.EnableProfiling,
    		"Enable profiling via web interface host:port/debug/pprof/")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 18:51:27 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/options/admission.go

    		DefaultOffPlugins:      sets.Set[string]{},
    	}
    	server.RegisterAllAdmissionPlugins(options.Plugins)
    	return options
    }
    
    // AddFlags adds flags related to admission for a specific APIServer to the specified FlagSet
    func (a *AdmissionOptions) AddFlags(fs *pflag.FlagSet) {
    	if a == nil {
    		return
    	}
    
    	fs.StringSliceVar(&a.EnablePlugins, "enable-admission-plugins", a.EnablePlugins, ""+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 12 08:49:42 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. pkg/kubeapiserver/options/authorization.go

    	}
    
    	return allErrors
    }
    
    // AddFlags returns flags of authorization for a API Server
    func (o *BuiltInAuthorizationOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    
    	fs.StringSliceVar(&o.Modes, authorizationModeFlag, o.Modes, ""+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 23:09:15 UTC 2024
    - 12K bytes
    - Viewed (0)
  10. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/config_flags_fake.go

    	return f.clientConfig
    }
    
    // ToRESTConfig implements RESTClientGetter.
    // Returns a REST client configuration based on a provided path
    // to a .kubeconfig file, loading rules, and config flag overrides.
    // Expects the AddFlags method to have been called.
    func (f *TestConfigFlags) ToRESTConfig() (*rest.Config, error) {
    	return f.ToRawKubeConfigLoader().ClientConfig()
    }
    
    // ToDiscoveryClient implements RESTClientGetter.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 11 15:04:11 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top