1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 17:37:12 +00:00
kyverno/pkg/webhooks/checker.go

15 lines
537 B
Go
Raw Normal View History

2019-10-25 16:55:48 -05:00
package webhooks
import (
"k8s.io/api/admission/v1beta1"
2019-10-25 16:55:48 -05:00
)
2020-04-10 23:24:54 +05:30
func (ws *WebhookServer) verifyHandler(request *v1beta1.AdmissionRequest) *v1beta1.AdmissionResponse {
logger := ws.log.WithName("verifyHandler").WithValues("action", "verify", "kind", request.Kind, "namespace", request.Namespace, "name", request.Name, "operation", request.Operation, "gvk", request.Kind.String())
logger.V(3).Info("incoming request", "last admission request timestamp", ws.webhookMonitor.Time())
return &v1beta1.AdmissionResponse{
Allowed: true,
2019-10-25 16:55:48 -05:00
}
}