ServiceAccounts: Collect usage stat for service account forced expiry (#64833)

collect usage stat for service account forced expiry
This commit is contained in:
Jo
2023-03-16 16:36:31 +01:00
committed by GitHub
parent 7784782512
commit 0e565a2e6c
5 changed files with 28 additions and 12 deletions
@@ -25,5 +25,7 @@ func (s *ServiceAccountsStoreImpl) GetUsageMetrics(ctx context.Context) (*servic
return nil, err
}
sqlStats.ForcedExpiryEnabled = s.cfg.SATokenExpirationDayLimit != 0
return &sqlStats, nil
}