Skip to content

Commit

Permalink
refactor: split connect-inject into multiple packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ishustava committed Nov 9, 2022
1 parent 0416f7f commit 764fff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control-plane/connect-inject/webhook/mesh_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (w *MeshWebhook) Handle(ctx context.Context, req admission.Request) admissi
// Optionally add any volumes that are to be used by the envoy sidecar.
if _, ok := pod.Annotations[common.AnnotationConsulSidecarUserVolume]; ok {
var userVolumes []corev1.Volume
err := json.Unmarshal([]byte(pod.Annotations[common.AnnotationConsulSidecarUserVolume]), &userVolumes)
err = json.Unmarshal([]byte(pod.Annotations[common.AnnotationConsulSidecarUserVolume]), &userVolumes)
if err != nil {
return admission.Errored(http.StatusInternalServerError, fmt.Errorf("error unmarshalling sidecar user volumes: %s", err))
}
Expand Down

0 comments on commit 764fff7

Please sign in to comment.