mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
14 lines
295 B
Go
14 lines
295 B
Go
package webhooks
|
|
|
|
import "github.com/nirmata/kube-policy/client"
|
|
|
|
// KindIsSupported checks kind to be prensent in
|
|
// SupportedKinds defined in config
|
|
func KindIsSupported(kind string) bool {
|
|
for _, k := range client.GetSupportedKinds() {
|
|
if k == kind {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|