Skip to content

Commit

Permalink
add or update unique volume mount
Browse files Browse the repository at this point in the history
  • Loading branch information
nasark committed Nov 2, 2023
1 parent a281143 commit 560986c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func addOrUpdateVolumeMount(volumeMounts []corev1.VolumeMount, volumeMount corev

index := -1
for i, v := range volumeMounts {
if v.Name == volumeMount.Name {
if v.Name == volumeMount.Name || v.MountPath == volumeMount.MountPath {
index = i
}
}
Expand Down

0 comments on commit 560986c

Please sign in to comment.