Skip to content

Commit

Permalink
fix(auth): allow anyone to get cluster-info in kube-public
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaosuiba committed Jun 2, 2021
1 parent dc27819 commit 7c5b7b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/auth/filter/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,5 @@ func splitPath(path string) []string {
}

func isGetVerb(verb string) bool {
if strings.HasPrefix(verb, "get") {
return true
}
return false
return strings.HasPrefix(verb, "get")
}

0 comments on commit 7c5b7b2

Please sign in to comment.