1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/pkg/webhooks/utils.go

17 lines
319 B
Go
Raw Normal View History

package webhooks
import (
kubeclient "github.com/nirmata/kube-policy/kubeclient"
)
// KindIsSupported checks kind to be prensent in
// SupportedKinds defined in config
func KindIsSupported(kind string) bool {
2019-05-07 13:26:54 -07:00
for _, k := range kubeclient.GetSupportedKinds() {
if k == kind {
return true
}
}
return false
}