From 560986ccd5639a88f18b59a10c64be8377c4c1e5 Mon Sep 17 00:00:00 2001 From: Nasar Khan Date: Thu, 2 Nov 2023 12:28:26 -0400 Subject: [PATCH] add or update unique volume mount --- manageiq-operator/api/v1alpha1/helpers/miq-components/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manageiq-operator/api/v1alpha1/helpers/miq-components/util.go b/manageiq-operator/api/v1alpha1/helpers/miq-components/util.go index 12e93f341..1509b7f93 100644 --- a/manageiq-operator/api/v1alpha1/helpers/miq-components/util.go +++ b/manageiq-operator/api/v1alpha1/helpers/miq-components/util.go @@ -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 } }