From 36eca5e886c1ad19639dfbb75e6200afeae2aaed Mon Sep 17 00:00:00 2001 From: shivkumar dudhani Date: Tue, 17 Mar 2020 18:34:44 -0700 Subject: [PATCH] CI fixes --- pkg/auth/auth.go | 4 +--- pkg/engine/policyContext.go | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index d2ab06ffd1..8f1ef24e1e 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -49,9 +49,7 @@ func (o *CanIOptions) RunAccessCheck() (bool, error) { return false, fmt.Errorf("failed to get the Group Version Resource for kind %s", o.kind) } - var sar *authorizationv1.SelfSubjectAccessReview - - sar = &authorizationv1.SelfSubjectAccessReview{ + sar := &authorizationv1.SelfSubjectAccessReview{ Spec: authorizationv1.SelfSubjectAccessReviewSpec{ ResourceAttributes: &authorizationv1.ResourceAttributes{ Namespace: o.namespace, diff --git a/pkg/engine/policyContext.go b/pkg/engine/policyContext.go index 3e1f7d22aa..20dd04c52c 100644 --- a/pkg/engine/policyContext.go +++ b/pkg/engine/policyContext.go @@ -1,7 +1,6 @@ package engine import ( - "github.com/go-logr/logr" kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" client "github.com/nirmata/kyverno/pkg/dclient" "github.com/nirmata/kyverno/pkg/engine/context" @@ -21,6 +20,4 @@ type PolicyContext struct { Client *client.Client // Contexts to store resources Context context.EvalInterface - // log - log logr.Logger }