Skip to content

Commit

Permalink
use root path for API permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Grant <[email protected]>
  • Loading branch information
Peter Grant committed Nov 23, 2023
1 parent 6f9e27f commit 4fd451c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/client/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ func clusterAdminRBAC(w io.Writer, cfg *GenConfig) error {
Verbs: []string{"*"},
},
{
NonResourceURLs: []string{"/metrics", "/logs", "/logs/*"},
NonResourceURLs: []string{"/"},
Verbs: []string{"get"},
},
}
Expand Down Expand Up @@ -538,7 +538,7 @@ func clusterReadRBAC(w io.Writer, cfg *GenConfig) error {
Verbs: []string{"get", "list", "watch"},
},
{
NonResourceURLs: []string{"/metrics", "/logs", "/logs/*"},
NonResourceURLs: []string{"/"},
Verbs: []string{"get"},
},
}
Expand Down

0 comments on commit 4fd451c

Please sign in to comment.