Skip to content

Commit f36f37f

Browse files
authored
bucket notifications - need connect files also in endpoint for put bucket notif (#1520) (#1522)
Signed-off-by: Amit Prinz Setter <alphaprinz@gmail.com>
1 parent 6695191 commit f36f37f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pkg/system/phase4_configuring.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,26 @@ func (r *Reconciler) setDesiredEndpointMounts(podSpec *corev1.PodSpec, container
608608
}
609609
}
610610
}
611+
612+
for _, notifSecret := range r.NooBaa.Spec.BucketNotifications.Connections {
613+
secretVolumeMounts := []corev1.VolumeMount{{
614+
Name: notifSecret.Name,
615+
MountPath: "/etc/notif_connect/" + notifSecret.Name,
616+
ReadOnly: true,
617+
}}
618+
util.MergeVolumeMountList(&container.VolumeMounts, &secretVolumeMounts)
619+
620+
secretVolumes := []corev1.Volume{{
621+
Name: notifSecret.Name,
622+
VolumeSource: corev1.VolumeSource{
623+
Secret: &corev1.SecretVolumeSource{
624+
SecretName: notifSecret.Name,
625+
},
626+
},
627+
}}
628+
util.MergeVolumeList(&podSpec.Volumes, &secretVolumes)
629+
}
630+
611631
return nil
612632
}
613633

0 commit comments

Comments
 (0)