mirror of https://github.com/k3s-io/k3s
add With method for allowed URL options on delegated authorization
parent
465d578d93
commit
77b56ec9e3
|
@ -75,6 +75,12 @@ func (s *DelegatingAuthorizationOptions) WithAlwaysAllowGroups(groups ...string)
|
|||
return s
|
||||
}
|
||||
|
||||
// WithAlwaysAllowPaths appends the list of paths to AlwaysAllowPaths
|
||||
func (s *DelegatingAuthorizationOptions) WithAlwaysAllowPaths(paths ...string) *DelegatingAuthorizationOptions {
|
||||
s.AlwaysAllowPaths = append(s.AlwaysAllowPaths, paths...)
|
||||
return s
|
||||
}
|
||||
|
||||
func (s *DelegatingAuthorizationOptions) Validate() []error {
|
||||
allErrors := []error{}
|
||||
return allErrors
|
||||
|
|
Loading…
Reference in New Issue