Skip to content

Commit 021b2e9

Browse files
committed
Proper variable name
1 parent 30ddb21 commit 021b2e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/webhooks/spiloPodMutator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ func (a *SpiloPodMutator) Handle(ctx context.Context, req admission.Request) adm
8585
log.V(1).Info("Mutating Pod topologySpreadConstraints", "topologySpreadConstraints", pod.Spec.TopologySpreadConstraints)
8686
}
8787

88-
marshaledSts, err := json.Marshal(pod)
88+
marshaledPod, err := json.Marshal(pod)
8989
if err != nil {
9090
log.Error(err, "failed to marshal response")
9191
return admission.Errored(http.StatusInternalServerError, err)
9292
}
9393

9494
log.V(1).Info("done")
95-
return admission.PatchResponseFromRaw(req.Object.Raw, marshaledSts)
95+
return admission.PatchResponseFromRaw(req.Object.Raw, marshaledPod)
9696
}

0 commit comments

Comments
 (0)