mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 01:16:55 +00:00
25 lines
502 B
Go
25 lines
502 B
Go
|
package v2
|
||
|
|
||
|
import (
|
||
|
kyvernov1 "github.com/kyverno/kyverno/api/kyverno/v1"
|
||
|
v1 "github.com/kyverno/kyverno/pkg/autogen/v1"
|
||
|
)
|
||
|
|
||
|
type v2 struct{}
|
||
|
|
||
|
func New() v2 {
|
||
|
return v2{}
|
||
|
}
|
||
|
|
||
|
func (a v2) GetAutogenRuleNames(p kyvernov1.PolicyInterface) []string {
|
||
|
return GetAutogenRuleNames(p)
|
||
|
}
|
||
|
|
||
|
func (a v2) GetAutogenKinds(p kyvernov1.PolicyInterface) []string {
|
||
|
return GetAutogenKinds(p)
|
||
|
}
|
||
|
|
||
|
func (a v2) ComputeRules(p kyvernov1.PolicyInterface, kind string) []kyvernov1.Rule {
|
||
|
return v1.ComputeRules(p, kind)
|
||
|
}
|