2019-10-25 16:55:48 -05:00
|
|
|
package webhooks
|
|
|
|
|
|
|
|
import (
|
2019-10-30 13:39:19 -07:00
|
|
|
"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 {
|
2021-05-13 12:03:13 -07:00
|
|
|
logger := ws.log.WithValues("action", "verify", "uid", request.UID, "kind", request.Kind, "namespace", request.Namespace, "name", request.Name, "operation", request.Operation, "gvk", request.Kind.String())
|
2020-03-17 11:05:20 -07:00
|
|
|
logger.V(4).Info("incoming request")
|
2019-10-30 13:39:19 -07:00
|
|
|
return &v1beta1.AdmissionResponse{
|
|
|
|
Allowed: true,
|
2019-10-25 16:55:48 -05:00
|
|
|
}
|
|
|
|
}
|