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:
parent
43bb3a47e7
commit
70b658b359
2 changed files with 183 additions and 183 deletions
|
@ -11,7 +11,7 @@ var supportedKinds = [...]string{
|
|||
"CronJob",
|
||||
"DaemonSet",
|
||||
"Deployment",
|
||||
"Endpoint",
|
||||
"Endpoints",
|
||||
"HorizontalPodAutoscaler",
|
||||
"Ingress",
|
||||
"Job",
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue