Skip to content

Commit

Permalink
monitor server check auth with get verb (#5239)
Browse files Browse the repository at this point in the history
  • Loading branch information
bxy4543 authored Nov 27, 2024
1 parent ebb51e5 commit aa3eff0
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 aa3eff0

Please sign in to comment.