Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for WithAll (0.09 sec)

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

    // WithAllNamespaces sets the AllNamespaces flag
    func (o *ResourceBuilderFlags) WithAllNamespaces(defaultVal bool) *ResourceBuilderFlags {
    	o.AllNamespaces = &defaultVal
    	return o
    }
    
    // WithAll sets the All flag
    func (o *ResourceBuilderFlags) WithAll(defaultVal bool) *ResourceBuilderFlags {
    	o.All = &defaultVal
    	return o
    }
    
    // WithLocal sets the Local flag
    func (o *ResourceBuilderFlags) WithLocal(defaultVal bool) *ResourceBuilderFlags {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 13 10:28:09 UTC 2021
    - 6.7K bytes
    - Viewed (0)
  2. pkg/kubeapiserver/options/authentication.go

    	return &BuiltInAuthenticationOptions{
    		TokenSuccessCacheTTL: 10 * time.Second,
    		TokenFailureCacheTTL: 0 * time.Second,
    	}
    }
    
    // WithAll set default value for every build-in authentication option
    func (o *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions {
    	return o.
    		WithAnonymous().
    		WithBootstrapToken().
    		WithClientCert().
    		WithOIDC().
    		WithRequestHeader().
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 22:40:22 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  3. pkg/controlplane/apiserver/options/options.go

    		Features:                genericoptions.NewFeatureOptions(),
    		Admission:               kubeoptions.NewAdmissionOptions(),
    		Authentication:          kubeoptions.NewBuiltInAuthenticationOptions().WithAll(),
    		Authorization:           kubeoptions.NewBuiltInAuthorizationOptions(),
    		APIEnablement:           genericoptions.NewAPIEnablementOptions(),
    		EgressSelector:          genericoptions.NewEgressSelectorOptions(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. pkg/kubeapiserver/options/authentication_test.go

    				Factor:   1.5,
    				Jitter:   0.2,
    				Steps:    5,
    			},
    		},
    		TokenSuccessCacheTTL: 10 * time.Second,
    		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() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 36.5K bytes
    - Viewed (0)
Back to top