feat: license util config (#3248)

* feat: license util config

* address comments

* introduce census job

* add job

* fix import groups

* remove pointers
This commit is contained in:
Michael Milton authored and GitHub committed 2023-05-30 18:20:49 -04:00
1 parent 7bdbe8ab8e
commit 9ae2bdfae6
6 files changed
+143

No files matched your search

+4
View File
@@ -15,6 +15,7 @@ import (
"github.com/hashicorp/boundary/internal/auth/oidc"
"github.com/hashicorp/boundary/internal/auth/password"
"github.com/hashicorp/boundary/internal/authtoken"
"github.com/hashicorp/boundary/internal/census"
"github.com/hashicorp/boundary/internal/cmd/base"
"github.com/hashicorp/boundary/internal/cmd/config"
credstatic "github.com/hashicorp/boundary/internal/credential/static"
@@ -536,6 +537,9 @@ func (c *Controller) registerJobs() error {
if err := cleaner.RegisterJob(c.baseContext, c.scheduler, rw); err != nil {
return err
}
if err := census.RegisterJob(c.baseContext, c.scheduler, c.conf.RawConfig.Reporting.License.Enabled, rw, rw); err != nil {
return err
}
return nil
}