Skip to content

Commit

Permalink
Merge pull request #6 from bnadim/master
Browse files Browse the repository at this point in the history
fix: don't merge volume mount on sidecar container if it exists
  • Loading branch information
byxorna authored Mar 11, 2019
2 parents e12e5e6 + 3e628fd commit 5dee404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func mergeVolumeMounts(volumeMounts []corev1.VolumeMount, containers []corev1.Co
// check each container for each volume mount by name.
// if the container has a matching name, dont override!
skip := false
for _, origVolumeMount := range c.VolumeDevices {
for _, origVolumeMount := range c.VolumeMounts {
if origVolumeMount.Name == newVolumeMount.Name {
skip = true
break
Expand Down

0 comments on commit 5dee404

Please sign in to comment.