Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuvraj committed Aug 27, 2020
1 parent b9123cd commit b59a4ed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions cmd/kyverno/main.go
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion pkg/event/controller.go
@@ -1,4 +1,4 @@
*package event
package event

import (
"time"
Expand Down
2 changes: 1 addition & 1 deletion pkg/policyreport/generator.go
Expand Up @@ -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"
Expand Down

0 comments on commit b59a4ed

Please sign in to comment.