Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for SetAuthorizer (0.36 sec)

  1. plugin/pkg/admission/certificates/approval/admission.go

    		return NewPlugin(), nil
    	})
    }
    
    // Plugin holds state for and implements the admission plugin.
    type Plugin struct {
    	*admission.Handler
    	authz authorizer.Authorizer
    }
    
    // SetAuthorizer sets the authorizer.
    func (p *Plugin) SetAuthorizer(authz authorizer.Authorizer) {
    	p.authz = authz
    }
    
    // ValidateInitialization ensures an authorizer is set.
    func (p *Plugin) ValidateInitialization() error {
    	if p.authz == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 3.2K bytes
    - Viewed (0)
  2. plugin/pkg/admission/certificates/signing/admission.go

    		return NewPlugin(), nil
    	})
    }
    
    // Plugin holds state for and implements the admission plugin.
    type Plugin struct {
    	*admission.Handler
    	authz authorizer.Authorizer
    }
    
    // SetAuthorizer sets the authorizer.
    func (p *Plugin) SetAuthorizer(authz authorizer.Authorizer) {
    	p.authz = authz
    }
    
    // ValidateInitialization ensures an authorizer is set.
    func (p *Plugin) ValidateInitialization() error {
    	if p.authz == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 28 16:20:40 UTC 2020
    - 3.5K bytes
    - Viewed (0)
  3. plugin/pkg/admission/certificates/ctbattest/admission.go

    var _ genericadmissioninit.WantsFeatures = &Plugin{}
    
    func NewPlugin() *Plugin {
    	return &Plugin{
    		Handler: admission.NewHandler(admission.Create, admission.Update),
    	}
    }
    
    // SetAuthorizer sets the plugin's authorizer.
    func (p *Plugin) SetAuthorizer(authz authorizer.Authorizer) {
    	p.authz = authz
    }
    
    // InspectFeatureGates implements WantsFeatures.
    func (p *Plugin) InspectFeatureGates(featureGates featuregate.FeatureGate) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 16:26:11 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/initializer/interfaces.go

    	admission.InitializationValidator
    }
    
    // WantsAuthorizer defines a function which sets Authorizer for admission plugins that need it.
    type WantsAuthorizer interface {
    	SetAuthorizer(authorizer.Authorizer)
    	admission.InitializationValidator
    }
    
    // WantsQuotaConfiguration defines a function which sets quota configuration for admission plugins that need it.
    type WantsQuotaConfiguration interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 19:11:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer.go

    	}
    
    	if wants, ok := plugin.(WantsExternalKubeInformerFactory); ok {
    		wants.SetExternalKubeInformerFactory(i.externalInformers)
    	}
    
    	if wants, ok := plugin.(WantsAuthorizer); ok {
    		wants.SetAuthorizer(i.authorizer)
    	}
    	if wants, ok := plugin.(WantsRESTMapper); ok {
    		wants.SetRESTMapper(i.restMapper)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/plugin.go

    func (c *Plugin[H]) SetDynamicClient(client dynamic.Interface) {
    	c.dynamicClient = client
    }
    
    func (c *Plugin[H]) SetDrainedNotification(stopCh <-chan struct{}) {
    	c.stopCh = stopCh
    }
    
    func (c *Plugin[H]) SetAuthorizer(authorizer authorizer.Authorizer) {
    	c.authorizer = authorizer
    }
    
    func (c *Plugin[H]) SetMatcher(matcher *matching.Matcher) {
    	c.matcher = matcher
    }
    
    func (c *Plugin[H]) SetEnabled(enabled bool) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 19:11:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer_test.go

    // WantAuthorizerAdmission is a test stub that fulfills the WantsAuthorizer interface.
    type WantAuthorizerAdmission struct {
    	auth authorizer.Authorizer
    }
    
    func (self *WantAuthorizerAdmission) SetAuthorizer(a authorizer.Authorizer) { self.auth = a }
    func (self *WantAuthorizerAdmission) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {
    	return nil
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go

    	a.hookSource = a.sourceFactory(f)
    	a.SetReadyFunc(func() bool {
    		return namespaceInformer.Informer().HasSynced() && a.hookSource.HasSynced()
    	})
    }
    
    func (a *Webhook) SetAuthorizer(authorizer authorizer.Authorizer) {
    	a.authorizer = authorizer
    }
    
    // ValidateInitialization implements the InitializationValidator interface.
    func (a *Webhook) ValidateInitialization() error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. plugin/pkg/admission/gc/gc_admission.go

    		wasNotBlocking := oldRef.BlockOwnerDeletion == nil || *oldRef.BlockOwnerDeletion == false
    		if wasNotBlocking {
    			ret = append(ret, ref)
    		}
    	}
    	return ret
    }
    
    func (a *gcPermissionsEnforcement) SetAuthorizer(authorizer authorizer.Authorizer) {
    	a.authorizer = authorizer
    }
    
    func (a *gcPermissionsEnforcement) SetRESTMapper(restMapper meta.RESTMapper) {
    	a.restMapper = restMapper
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top