mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-08 10:04:25 +00:00
bug fixed
This commit is contained in:
parent
b9123cd3f4
commit
b59a4edfcd
3 changed files with 2 additions and 9 deletions
|
@ -15,7 +15,6 @@ import (
|
|||
"github.com/nirmata/kyverno/pkg/checker"
|
||||
kyvernoclient "github.com/nirmata/kyverno/pkg/client/clientset/versioned"
|
||||
kyvernoinformer "github.com/nirmata/kyverno/pkg/client/informers/externalversions"
|
||||
policyreportinformer "github.com/nirmata/kyverno/pkg/client/informers/externalversions"
|
||||
"github.com/nirmata/kyverno/pkg/config"
|
||||
dclient "github.com/nirmata/kyverno/pkg/dclient"
|
||||
event "github.com/nirmata/kyverno/pkg/event"
|
||||
|
@ -104,11 +103,6 @@ func main() {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
// Policy Report CRD INFORMER
|
||||
// watches CRD resources:
|
||||
// - PolicyReport
|
||||
prInformer := policyreportinformer.NewSharedInformerFactoryWithOptions(pclient, resyncPeriod)
|
||||
|
||||
// DYNAMIC CLIENT
|
||||
// - client for all registered resources
|
||||
client, err := dclient.NewClient(clientConfig, 5*time.Minute, stopCh, log.Log)
|
||||
|
@ -204,7 +198,6 @@ func main() {
|
|||
// - status aggregator: receives stats when a policy is applied & updates the policy status
|
||||
policyCtrl, err := policy.NewPolicyController(pclient,
|
||||
client,
|
||||
prInformer.Policy().V1alpha1(),
|
||||
pInformer.Kyverno().V1().ClusterPolicies(),
|
||||
pInformer.Kyverno().V1().Policies(),
|
||||
pInformer.Kyverno().V1().ClusterPolicyViolations(),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
*package event
|
||||
package event
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
|
|
@ -2,7 +2,7 @@ package policyreport
|
|||
|
||||
import (
|
||||
"github.com/nirmata/kyverno/pkg/config"
|
||||
"github.com/nirmata/kyverno/pkg/engine/context"
|
||||
"context"
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"reflect"
|
||||
"strconv"
|
||||
|
|
Loading…
Add table
Reference in a new issue