mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-08 18:15:48 +00:00
fix: split policy report flag (#4576)
Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com> Co-authored-by: Prateek Pandey <prateek.pandey@nirmata.com>
This commit is contained in:
parent
f7853bb699
commit
6a0fff7c9f
1 changed files with 1 additions and 4 deletions
|
@ -37,9 +37,6 @@ type changeRequestCreator struct {
|
|||
mutex sync.RWMutex
|
||||
queue []string
|
||||
|
||||
// splitPolicyReport enable/disable the PolicyReport split-up per policy feature
|
||||
splitPolicyReport bool
|
||||
|
||||
tickerInterval time.Duration
|
||||
|
||||
log logr.Logger
|
||||
|
@ -126,7 +123,7 @@ func (c *changeRequestCreator) run(stopChan <-chan struct{}) {
|
|||
case <-ticker.C:
|
||||
var requests []*unstructured.Unstructured
|
||||
var size int
|
||||
if c.splitPolicyReport {
|
||||
if toggle.SplitPolicyReport.Enabled() {
|
||||
requests, size = c.mergeRequestsPerPolicy()
|
||||
} else {
|
||||
requests, size = c.mergeRequests()
|
||||
|
|
Loading…
Add table
Reference in a new issue