mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 07:57:07 +00:00
add Policy kind as known Kind
This commit is contained in:
parent
a4310a38dd
commit
e708215310
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ var (
|
|||
// Adds the list of known types to Scheme.
|
||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
||||
&Policy{},
|
||||
&PolicyList{},
|
||||
&PolicyViolation{},
|
||||
&PolicyViolationList{},
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue