Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create event when entry is pruned #4860

Merged
merged 11 commits into from
Feb 14, 2024
Next Next commit
Create event when entry is pruned
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
  • Loading branch information
faisal-memon committed Feb 9, 2024
commit d2dacb30b75fb1689778ba605094e8e641e35913
3 changes: 3 additions & 0 deletions pkg/server/datastore/sqlstore/sqlstore.go
Original file line number Diff line number Diff line change
@@ -3818,6 +3818,9 @@ func pruneRegistrationEntries(tx *gorm.DB, expiresBefore time.Time, logger logru
if err := deleteRegistrationEntrySupport(tx, entry); err != nil {
return err
}
if err := createRegistrationEntryEvent(tx, entry.EntryID); err != nil {
faisal-memon marked this conversation as resolved.
Show resolved Hide resolved
return err
}
logger.WithFields(logrus.Fields{
telemetry.SPIFFEID: entry.SpiffeID,
telemetry.ParentID: entry.ParentID,