1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-01-20 18:52:16 +00:00

NK-31: Fixed supporting policies for Endpoints

This commit is contained in:
belyshevdenis 2019-03-11 16:17:58 +02:00
parent 43bb3a47e7
commit 70b658b359
2 changed files with 183 additions and 183 deletions

View file

@ -11,7 +11,7 @@ var supportedKinds = [...]string{
"CronJob",
"DaemonSet",
"Deployment",
"Endpoint",
"Endpoints",
"HorizontalPodAutoscaler",
"Ingress",
"Job",

View file

@ -19,7 +19,7 @@ func TestAdmissionIsRequired(t *testing.T) {
assertEq(t, true, webhooks.AdmissionIsRequired(&request))
request.Kind.Kind = "Deployment"
assertEq(t, true, webhooks.AdmissionIsRequired(&request))
request.Kind.Kind = "Endpoint"
request.Kind.Kind = "Endpoints"
assertEq(t, true, webhooks.AdmissionIsRequired(&request))
request.Kind.Kind = "HorizontalPodAutoscaler"
assertEq(t, true, webhooks.AdmissionIsRequired(&request))