mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
CI fixes
This commit is contained in:
parent
d66bcf9636
commit
36eca5e886
2 changed files with 1 additions and 6 deletions
|
@ -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)
|
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{
|
Spec: authorizationv1.SelfSubjectAccessReviewSpec{
|
||||||
ResourceAttributes: &authorizationv1.ResourceAttributes{
|
ResourceAttributes: &authorizationv1.ResourceAttributes{
|
||||||
Namespace: o.namespace,
|
Namespace: o.namespace,
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package engine
|
package engine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-logr/logr"
|
|
||||||
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1"
|
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1"
|
||||||
client "github.com/nirmata/kyverno/pkg/dclient"
|
client "github.com/nirmata/kyverno/pkg/dclient"
|
||||||
"github.com/nirmata/kyverno/pkg/engine/context"
|
"github.com/nirmata/kyverno/pkg/engine/context"
|
||||||
|
@ -21,6 +20,4 @@ type PolicyContext struct {
|
||||||
Client *client.Client
|
Client *client.Client
|
||||||
// Contexts to store resources
|
// Contexts to store resources
|
||||||
Context context.EvalInterface
|
Context context.EvalInterface
|
||||||
// log
|
|
||||||
log logr.Logger
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue