mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
fix format
This commit is contained in:
parent
860d2f8df1
commit
ba43509b43
1 changed files with 5 additions and 1 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"k8s.io/sample-controller/pkg/signals"
|
||||
)
|
||||
|
||||
|
@ -78,7 +79,10 @@ func (f *fixture) setupFixture() {
|
|||
if err != nil {
|
||||
f.t.Fatal(err)
|
||||
}
|
||||
regresource := map[string]string{"kyverno.io/v1alpha1": "policys"}
|
||||
regresource := []schema.GroupVersionResource{
|
||||
schema.GroupVersionResource{Group: "kyverno.io",
|
||||
Version: "v1alpha1",
|
||||
Resource: "policys"}}
|
||||
fclient.SetDiscovery(client.NewFakeDiscoveryClient(regresource))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue