Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
takara9 committed Jun 4, 2024
1 parent ce46f1d commit 8586c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/mutate_pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (m *podMutator) Handle(ctx context.Context, req admission.Request) admissio
m.log.Info("mutating pod,", "name", namespacedName, "profile", m.profileName)

po := &corev1.Pod{}
err:= m.decoder.Decode(req, po)
err := m.decoder.Decode(req, po)
if err != nil {
m.log.Error(err, "failed to decode pod", "name", namespacedName, "profile", m.profileName)
return admission.Errored(http.StatusBadRequest, err)
Expand Down

0 comments on commit 8586c36

Please sign in to comment.