@@ -549,7 +549,8 @@ func (r *Reconciler) SetDesiredCoreApp() error {
549
549
if r .NooBaa .Spec .CoreResources != nil {
550
550
c .Resources = * r .NooBaa .Spec .CoreResources
551
551
}
552
- if util .KubeCheckQuiet (r .CaBundleConf ) {
552
+ // we want to check that the cm exists and also that it has data in it
553
+ if util .KubeCheckQuiet (r .CaBundleConf ) && len (r .CaBundleConf .Data ) > 0 {
553
554
configMapVolumeMounts := []corev1.VolumeMount {{
554
555
Name : r .CaBundleConf .Name ,
555
556
MountPath : "/etc/ocp-injected-ca-bundle" ,
@@ -632,7 +633,8 @@ func (r *Reconciler) SetDesiredCoreApp() error {
632
633
Limits : logResourceList ,
633
634
}
634
635
}
635
- if util .KubeCheckQuiet (r .CaBundleConf ) {
636
+ // we want to check that the cm exists and also that it has data in it
637
+ if util .KubeCheckQuiet (r .CaBundleConf ) && len (r .CaBundleConf .Data ) > 0 {
636
638
configMapVolumeMounts := []corev1.VolumeMount {{
637
639
Name : r .CaBundleConf .Name ,
638
640
MountPath : "/etc/ocp-injected-ca-bundle" ,
@@ -675,7 +677,8 @@ func (r *Reconciler) SetDesiredCoreApp() error {
675
677
676
678
r .CoreApp .Spec .Template .Annotations ["noobaa.io/configmap-hash" ] = r .CoreAppConfig .Annotations ["noobaa.io/configmap-hash" ]
677
679
678
- if util .KubeCheckQuiet (r .CaBundleConf ) {
680
+ // we want to check that the cm exists and also that it has data in it
681
+ if util .KubeCheckQuiet (r .CaBundleConf ) && len (r .CaBundleConf .Data ) > 0 {
679
682
configMapVolumes := []corev1.Volume {{
680
683
Name : r .CaBundleConf .Name ,
681
684
VolumeSource : corev1.VolumeSource {
0 commit comments