Skip to content

Commit

Permalink
🏃 move example for builtin type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengqi Yu committed Mar 8, 2019
1 parent 301b453 commit dceff20
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type podAnnotator struct {
func (a *podAnnotator) Handle(ctx context.Context, req admission.Request) admission.Response {
pod := &corev1.Pod{}

err := a.decoder.Decode(req.Object, pod)
err := a.decoder.Decode(req, pod)
if err != nil {
return admission.Errored(http.StatusBadRequest, err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type podValidator struct {
func (v *podValidator) Handle(ctx context.Context, req admission.Request) admission.Response {
pod := &corev1.Pod{}

err := v.decoder.Decode(req.Object, pod)
err := v.decoder.Decode(req, pod)
if err != nil {
return admission.Errored(http.StatusBadRequest, err)
}
Expand Down

0 comments on commit dceff20

Please sign in to comment.