Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kfox1111 authored Oct 13, 2020
1 parent d6bec16 commit 4484e49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/admission/admission.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ func (a *Admission) serveAdmission(w http.ResponseWriter, r *http.Request, admit
}

responseAdmissionReview.Response.UID = requestedAdmissionReview.Request.UID
responseAdmissionReview.APIVersion = requestedAdmissionReview.APIVersion
responseAdmissionReview.Kind = requestedAdmissionReview.Kind

respBytes, err := json.Marshal(responseAdmissionReview)

Expand Down Expand Up @@ -256,6 +258,9 @@ func (a *Admission) serve(w http.ResponseWriter, r *http.Request, admit admitFun

responseAdmissionReview.Response.UID = requestedAdmissionReview.Request.UID

responseAdmissionReview.APIVersion = requestedAdmissionReview.APIVersion
responseAdmissionReview.Kind = requestedAdmissionReview.Kind

respBytes, err := json.Marshal(responseAdmissionReview)

level.Debug(a.logger).Log("msg", "sending response", "content", string(respBytes))
Expand Down

0 comments on commit 4484e49

Please sign in to comment.