Skip to content

Commit

Permalink
Setup SiteInfo publisher (#1390)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha authored Oct 7, 2021
1 parent 8daab52 commit cc2da91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/controller/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,11 @@ func (c *Config) New() (*StashController, error) {
ctrl.initBackupSessionWatcher()
ctrl.initRestoreSessionWatcher()

if auditor != nil {
if err := auditor.SetupSiteInfoPublisher(ctrl.clientConfig, ctrl.kubeClient, ctrl.kubeInformerFactory); err != nil {
return nil, err
}
}

return ctrl, nil
}

0 comments on commit cc2da91

Please sign in to comment.