1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00

refactor: move per namespace reports aggregator in a sub package (#8419)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2023-09-15 10:41:36 +02:00 committed by GitHub
parent a5e6a7fa33
commit fa36f76cf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ import (
"github.com/kyverno/kyverno/pkg/clients/dclient"
"github.com/kyverno/kyverno/pkg/config"
admissionreportcontroller "github.com/kyverno/kyverno/pkg/controllers/report/admission"
aggregatereportcontroller "github.com/kyverno/kyverno/pkg/controllers/report/aggregate"
aggregatereportcontroller "github.com/kyverno/kyverno/pkg/controllers/report/aggregate/namespace"
backgroundscancontroller "github.com/kyverno/kyverno/pkg/controllers/report/background"
resourcereportcontroller "github.com/kyverno/kyverno/pkg/controllers/report/resource"
engineapi "github.com/kyverno/kyverno/pkg/engine/api"

View file

@ -1,4 +1,4 @@
package aggregate
package namespace
import (
"context"
@ -34,7 +34,7 @@ import (
const (
// Workers is the number of workers for this controller
Workers = 1
ControllerName = "aggregate-report-controller"
ControllerName = "namespace-aggregate-report-controller"
maxRetries = 10
mergeLimit = 1000
enqueueDelay = 30 * time.Second

View file

@ -1,4 +1,4 @@
package aggregate
package namespace
import "github.com/kyverno/kyverno/pkg/logging"