Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 75 for AddFlags (0.2 sec)

  1. cmd/kube-controller-manager/app/options/endpointslicemirroringcontroller.go

    type EndpointSliceMirroringControllerOptions struct {
    	*endpointslicemirroringconfig.EndpointSliceMirroringControllerConfiguration
    }
    
    // AddFlags adds flags related to EndpointSliceMirroringController for
    // controller manager to the specified FlagSet.
    func (o *EndpointSliceMirroringControllerOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 19 13:01:01 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/tracing.go

    	ConfigFile string
    }
    
    // NewTracingOptions creates a new instance of TracingOptions
    func NewTracingOptions() *TracingOptions {
    	return &TracingOptions{}
    }
    
    // AddFlags adds flags related to tracing to the specified FlagSet
    func (o *TracingOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    
    	fs.StringVar(&o.ConfigFile, "tracing-config-file", o.ConfigFile,
    		"File with apiserver tracing configuration.")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 21:39:39 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. cmd/kube-controller-manager/app/options/nodelifecyclecontroller.go

    type NodeLifecycleControllerOptions struct {
    	*nodelifecycleconfig.NodeLifecycleControllerConfiguration
    }
    
    // AddFlags adds flags related to NodeLifecycleController for controller manager to the specified FlagSet.
    func (o *NodeLifecycleControllerOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 09:25:51 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. cmd/kube-apiserver/app/options/globalflags_test.go

    		actualFlag = append(actualFlag, flag.Name)
    	})
    
    	// Get all flags from flags.CommandLine, except flag `test.*`.
    	wantedFlag := []string{"help"}
    	pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
    	logs.AddFlags(pflag.CommandLine)
    	normalizeFunc := nfs.GetNormalizeFunc()
    	pflag.VisitAll(func(flag *pflag.Flag) {
    		if !strings.Contains(flag.Name, "test.") {
    			wantedFlag = append(wantedFlag, string(normalizeFunc(nfs, flag.Name)))
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 30 11:46:49 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. cmd/kube-controller-manager/app/options/csrsigningcontroller.go

    type CSRSigningControllerOptions struct {
    	*csrsigningconfig.CSRSigningControllerConfiguration
    }
    
    // AddFlags adds flags related to CSRSigningController for controller manager to the specified FlagSet.
    func (o *CSRSigningControllerOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 03 06:47:49 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/coreapi.go

    	// If it is not set, the in cluster config is used.
    	CoreAPIKubeconfigPath string
    }
    
    func NewCoreAPIOptions() *CoreAPIOptions {
    	return &CoreAPIOptions{}
    }
    
    func (o *CoreAPIOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    
    	fs.StringVar(&o.CoreAPIKubeconfigPath, "kubeconfig", o.CoreAPIKubeconfigPath,
    		"kubeconfig file pointing at the 'core' kubernetes server.")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 16:55:02 UTC 2022
    - 2.7K bytes
    - Viewed (0)
Back to top