K8s: Stats: Update requester (#98706)

This commit is contained in:
Stephanie Hingtgen 2025-01-08 13:09:39 -07:00 committed by GitHub
parent 429da7fd68
commit 2992fbf6ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -462,13 +462,11 @@ func addToStats(base stats.UserStats, role org.RoleType, count int64) stats.User
func getStatsRequester(orgId int64) *identity.StaticRequester {
return &identity.StaticRequester{
Type: claims.TypeServiceAccount,
UserID: 1,
OrgID: orgId,
Name: "admin",
Login: "admin",
OrgRole: identity.RoleAdmin,
IsGrafanaAdmin: true,
Type: claims.TypeServiceAccount,
UserID: 1,
OrgID: orgId,
Name: "stats-requester",
Login: "stats-requester",
Permissions: map[int64]map[string][]string{
orgId: {
"*": {"*"},