2019-10-25 16:55:48 -05:00
|
|
|
package webhooks
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/golang/glog"
|
2019-10-30 13:39:19 -07:00
|
|
|
"k8s.io/api/admission/v1beta1"
|
2019-10-25 16:55:48 -05:00
|
|
|
)
|
|
|
|
|
2019-10-30 13:39:19 -07:00
|
|
|
func (ws *WebhookServer) handleVerifyRequest(request *v1beta1.AdmissionRequest) *v1beta1.AdmissionResponse {
|
|
|
|
glog.V(4).Infof("Receive request in mutating webhook '/verify': Kind=%s, Namespace=%s Name=%s UID=%s patchOperation=%s",
|
|
|
|
request.Kind.Kind, request.Namespace, request.Name, request.UID, request.Operation)
|
|
|
|
return &v1beta1.AdmissionResponse{
|
|
|
|
Allowed: true,
|
2019-10-25 16:55:48 -05:00
|
|
|
}
|
|
|
|
}
|