Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,909 for ToOptions (0.12 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/filename_flags.go

    	Kustomize *string
    	Recursive *bool
    }
    
    // ToOptions creates a new FileNameOptions struct and sets FilenameOptions based on FileNameflags
    func (o *FileNameFlags) ToOptions() resource.FilenameOptions {
    	options := resource.FilenameOptions{}
    
    	if o == nil {
    		return options
    	}
    
    	if o.Recursive != nil {
    		options.Recursive = *o.Recursive
    	}
    	if o.Filenames != nil {
    		options.Filenames = *o.Filenames
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 13 10:28:09 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/builder_flags.go

    	}
    
    	if o.Scheme != nil {
    		builder.WithScheme(o.Scheme, o.Scheme.PrioritizedVersionsAllGroups()...)
    	} else {
    		builder.Unstructured()
    	}
    
    	if o.FileNameFlags != nil {
    		opts := o.FileNameFlags.ToOptions()
    		builder.FilenameParam(enforceNamespace, &opts)
    	}
    
    	if o.Local == nil || !*o.Local {
    		// resource type/name tuples only work non-local
    		if o.All != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 13 10:28:09 UTC 2021
    - 6.7K bytes
    - Viewed (0)
  3. cmd/kube-scheduler/app/options/options.go

    	// Flags hold the parsed CLI flags.
    	Flags *cliflag.NamedFlagSets
    }
    
    // NewOptions returns default scheduler app options.
    func NewOptions() *Options {
    	o := &Options{
    		SecureServing:  apiserveroptions.NewSecureServingOptions().WithLoopback(),
    		Authentication: apiserveroptions.NewDelegatingAuthenticationOptions(),
    		Authorization:  apiserveroptions.NewDelegatingAuthorizationOptions(),
    		Deprecated: &DeprecatedOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 17 17:06:29 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. istioctl/cmd/options.go

    	retval := &cobra.Command{
    		Use:   "options",
    		Short: "Displays istioctl global options",
    		Args:  cobra.ExactArgs(0),
    	}
    
    	retval.SetHelpFunc(func(c *cobra.Command, args []string) {
    		c.Printf("The following options can be passed to any command:\n")
    		// (Currently the only global options we show are help options)
    		rootCmd.PersistentFlags().VisitAll(func(flag *pflag.Flag) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. pkg/log/options.go

    func (o *Options) WithStackdriverLoggingFormat() *Options {
    	o.useStackdriverFormat = true
    	return o
    }
    
    // WithTeeToUDS configures a parallel logging pipeline that writes logs to a server over UDS.
    // addr is the socket that the server listens on, and path is the HTTP path that process the log message.
    func (o *Options) WithTeeToUDS(addr, path string) *Options {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 04:04:34 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. pkg/monitoring/options.go

    	return func(opts *options) {
    		opts.unit = unit
    	}
    }
    
    // WithEnabled allows a metric to be condition enabled if the provided function returns true.
    // If disabled, metric operations will do nothing.
    func WithEnabled(enabled func() bool) Options {
    	return func(o *options) {
    		o.enabledCondition = enabled
    	}
    }
    
    func createOptions(name, description string, opts ...Options) (options, Metric) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. pkg/keepalive/options.go

    )
    
    // Options defines the set of options used for grpc keepalive.
    // The Time and Timeout options are used for both client and server connections,
    // whereas MaxServerConnectionAge* options are applicable on the server side only
    // (as implied by the options' name...)
    type Options struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. pkg/ctrlz/options.go

    import (
    	"github.com/spf13/cobra"
    )
    
    // Options defines the set of options supported by Istio's ControlZ component introspection package.
    type Options struct {
    	// The IP port to use for ctrlz.
    	Port uint16
    
    	// The IP address to listen on for ctrlz.
    	Address string
    
    	// If true, pprof will be enabled
    	EnablePprof bool
    }
    
    // DefaultOptions returns a new set of options, initialized to the defaults
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 21:42:29 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. pkg/controlplane/apiserver/options/options.go

    limitations under the License.
    */
    
    // Package options contains flags and options for initializing an apiserver
    package options
    
    import (
    	"fmt"
    	"net"
    	"os"
    	"strings"
    	"time"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	peerreconcilers "k8s.io/apiserver/pkg/reconcilers"
    	genericoptions "k8s.io/apiserver/pkg/server/options"
    	"k8s.io/apiserver/pkg/storage/storagebackend"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. pkg/test/framework/resource/config/apply/options.go

    // limitations under the License.
    
    package apply
    
    import "istio.io/istio/pkg/test/framework/resource/config/cleanup"
    
    // Options provide options for applying configuration
    type Options struct {
    	// Cleanup strategy
    	Cleanup cleanup.Strategy
    
    	// Wait for configuration to be propagated.
    	Wait bool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 27 17:09:00 UTC 2022
    - 851 bytes
    - Viewed (0)
Back to top