Skip to content

Commit

Permalink
monitor server check auth with get verb
Browse files Browse the repository at this point in the history
  • Loading branch information
bxy4543 committed Nov 27, 2024
1 parent 3cd3d6d commit 85071a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/pkg/auth/authenticate.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func Authenticate(ns, kc string) error {
return fmt.Errorf("ping apiserver is no ok: %v", string(res))
}

if err := CheckResourceAccess(client, ns, "update", "pods"); err != nil {
if err := CheckResourceAccess(client, ns, "get", "pods"); err != nil {
// fmt.Println(err.Error())
return fmt.Errorf("check resource access error: %v", err)
}
Expand Down

0 comments on commit 85071a7

Please sign in to comment.