Skip to content

Commit b4287f2

Browse files
fr-sarkertamalsaha
authored andcommitted
update Condition
Signed-off-by: Fazle Rabbi Sarker <fazlerabbi@appscode.com>
1 parent 25bea0c commit b4287f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/v1/kubernetes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func GetVolumeMountByName(volumeMounts []core.VolumeMount, name string) *core.Vo
260260
func UpsertVolumeMount(mounts []core.VolumeMount, nv ...core.VolumeMount) []core.VolumeMount {
261261
upsert := func(m core.VolumeMount) {
262262
for i, vol := range mounts {
263-
if vol.Name == m.Name && (vol.SubPathExpr != "" && vol.SubPathExpr == m.SubPathExpr) {
263+
if vol.Name == m.Name && vol.MountPath == m.MountPath {
264264
mounts[i] = m
265265
return
266266
}

0 commit comments

Comments
 (0)