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

15 lines
295 B
Go
Raw Normal View History

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