diff --git a/pkg/webhooks/server.go b/pkg/webhooks/server.go index 2b00d5e12c..d401cdc449 100644 --- a/pkg/webhooks/server.go +++ b/pkg/webhooks/server.go @@ -292,7 +292,7 @@ func (ws *WebhookServer) handleMutateAdmissionRequest(request *v1beta1.Admission } func (ws *WebhookServer) handleValidateAdmissionRequest(request *v1beta1.AdmissionRequest) *v1beta1.AdmissionResponse { - policies, err := ws.pMetaStore.LookUp(request.Kind.Kind, request.Namespace) + policies, err := ws.pMetaStore.ListAll() if err != nil { // Unable to connect to policy Lister to access policies glog.Errorf("Unable to connect to policy controller to access policies. Policies are NOT being applied: %v", err)