Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for matchesSubject (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/rule.go

    		if matchesSubject(user, subject) {
    			return true
    		}
    	}
    	return false
    }
    
    func matchesSubject(user user.Info, subject flowcontrol.Subject) bool {
    	switch subject.Kind {
    	case flowcontrol.SubjectKindUser:
    		return subject.User != nil && (subject.User.Name == flowcontrol.NameAll || subject.User.Name == user.GetName())
    	case flowcontrol.SubjectKindGroup:
    		if subject.Group == nil {
    			return false
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 6.3K bytes
    - Viewed (0)
Back to top