mirror of
https://github.com/labring/sealos.git
synced 2026-09-21 13:51:32 +08:00
monitor server check auth with get verb (#5239)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user