Skip to content

Commit e91cd47

Browse files
committed
[18.0-fr2] Propagate top-level extraMounts to Horizon
The other extraMounts consumers (Glance/Cinder/Neutron) already do this. Jira: OSPRH-15724
1 parent 514448b commit e91cd47

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pkg/openstack/horizon.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,15 @@ func ReconcileHorizon(ctx context.Context, instance *corev1beta1.OpenStackContro
157157
horizon.Spec.Secret = instance.Spec.Secret
158158
}
159159

160+
// Append globally defined extraMounts to the service's own list.
161+
for _, ev := range instance.Spec.ExtraMounts {
162+
horizon.Spec.ExtraMounts = append(horizon.Spec.ExtraMounts, horizonv1.HorizonExtraVolMounts{
163+
Name: ev.Name,
164+
Region: ev.Region,
165+
VolMounts: ev.VolMounts,
166+
})
167+
}
168+
160169
err := controllerutil.SetControllerReference(helper.GetBeforeObject(), horizon, helper.GetScheme())
161170
if err != nil {
162171
return err

0 commit comments

Comments
 (0)