Skip to content

Commit 7c5b7b2

Browse files
committed
fix(auth): allow anyone to get cluster-info in kube-public
1 parent dc27819 commit 7c5b7b2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/auth/filter/filter.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,5 @@ func splitPath(path string) []string {
332332
}
333333

334334
func isGetVerb(verb string) bool {
335-
if strings.HasPrefix(verb, "get") {
336-
return true
337-
}
338-
return false
335+
return strings.HasPrefix(verb, "get")
339336
}

0 commit comments

Comments
 (0)