mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-05 15:37:19 +00:00
527 removed uneeded statements
This commit is contained in:
parent
8a12ea30d6
commit
2a9b6a8f69
1 changed files with 0 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
package webhooks
|
package webhooks
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
|
@ -57,9 +56,6 @@ func (ws *WebhookServer) HandleMutation(request *v1beta1.AdmissionRequest, resou
|
||||||
glog.V(2).Infof("Handling mutation for Kind=%s, Namespace=%s Name=%s UID=%s patchOperation=%s",
|
glog.V(2).Infof("Handling mutation for Kind=%s, Namespace=%s Name=%s UID=%s patchOperation=%s",
|
||||||
resource.GetKind(), resource.GetNamespace(), resource.GetName(), request.UID, request.Operation)
|
resource.GetKind(), resource.GetNamespace(), resource.GetName(), request.UID, request.Operation)
|
||||||
policyContext.Policy = policy
|
policyContext.Policy = policy
|
||||||
if resource.GetKind() == "Pod" {
|
|
||||||
log.Println("some")
|
|
||||||
}
|
|
||||||
engineResponse := engine.Mutate(policyContext)
|
engineResponse := engine.Mutate(policyContext)
|
||||||
engineResponses = append(engineResponses, engineResponse)
|
engineResponses = append(engineResponses, engineResponse)
|
||||||
go ws.status.UpdateStatusWithMutateStats(engineResponse)
|
go ws.status.UpdateStatusWithMutateStats(engineResponse)
|
||||||
|
|
Loading…
Add table
Reference in a new issue