Skip to content

Commit

Permalink
fix: don't skip conflicting mount volume
Browse files Browse the repository at this point in the history
Signed-off-by: Shivanjan Chakravorty <schakravorty@purestorage.com>
  • Loading branch information
Glitchfix committed Aug 23, 2023
1 parent cf58c2b commit e105361
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/storage/portworx/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -1358,8 +1358,7 @@ func (t *template) mountsFromVolInfo(vols []volumeInfo) []v1.VolumeMount {

for _, v := range t.cluster.Spec.Volumes {
if _, ok := mountPathSet[v.MountPath]; ok {
logrus.Warnf("Found mountPath conflict for volume %s at %s, volume will be ignored", v.Name, v.MountPath)
continue
logrus.Warnf("Found mountPath conflict for volume %s at %s", v.Name, v.MountPath)
}
volumeMounts = append(volumeMounts, v1.VolumeMount{
Name: pxutil.UserVolumeName(v.Name),
Expand Down

0 comments on commit e105361

Please sign in to comment.