Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NodeIdentity (0.3 sec)

  1. plugin/pkg/auth/authorizer/node/node_authorizer.go

    )
    
    // NodeAuthorizer authorizes requests from kubelets, with the following logic:
    //  1. If a request is not from a node (NodeIdentity() returns isNode=false), reject
    //  2. If a specific node cannot be identified (NodeIdentity() returns nodeName=""), reject
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 16K bytes
    - Viewed (0)
  2. plugin/pkg/admission/noderestriction/admission.go

    )
    
    // Admit checks the admission policy and triggers corresponding actions
    func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {
    	nodeName, isNode := p.nodeIdentifier.NodeIdentity(a.GetUserInfo())
    
    	// Our job is just to restrict nodes
    	if !isNode {
    		return nil
    	}
    
    	if len(nodeName) == 0 {
    		// disallow requests we cannot match to a particular node
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top