1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
This commit is contained in:
shivkumar dudhani 2020-03-17 18:34:44 -07:00
parent d66bcf9636
commit 36eca5e886
2 changed files with 1 additions and 6 deletions

View file

@ -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,

View file

@ -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
}