@@ -427,6 +427,10 @@ func (r *Reconciler) setDesiredCoreEnv(c *corev1.Container) {
427
427
c .Env [j ].Value = r .SecretRootMasterKey
428
428
case "NODE_EXTRA_CA_CERTS" :
429
429
c .Env [j ].Value = r .ApplyCAsToPods
430
+ case "GUARANTEED_LOGS_PATH" :
431
+ if r .NooBaa .Spec .BucketLogging .LoggingType == nbv1 .BucketLoggingTypeGuaranteed {
432
+ c .Env [j ].Value = r .BucketLoggingVolumeMount
433
+ }
430
434
}
431
435
}
432
436
}
@@ -484,6 +488,13 @@ func (r *Reconciler) SetDesiredCoreApp() error {
484
488
}}
485
489
util .MergeVolumeMountList (& c .VolumeMounts , & secretVolumeMounts )
486
490
}
491
+ if r .NooBaa .Spec .BucketLogging .LoggingType == nbv1 .BucketLoggingTypeGuaranteed {
492
+ bucketLogVolumeMounts := []corev1.VolumeMount {{
493
+ Name : r .BucketLoggingVolume ,
494
+ MountPath : r .BucketLoggingVolumeMount ,
495
+ }}
496
+ util .MergeVolumeMountList (& c .VolumeMounts , & bucketLogVolumeMounts )
497
+ }
487
498
case "noobaa-log-processor" :
488
499
if c .Image != r .NooBaa .Status .ActualImage {
489
500
coreImageChanged = true
@@ -580,6 +591,18 @@ func (r *Reconciler) SetDesiredCoreApp() error {
580
591
}}
581
592
util .MergeVolumeList (& podSpec .Volumes , & secretVolumes )
582
593
}
594
+
595
+ if r .NooBaa .Spec .BucketLogging .LoggingType == nbv1 .BucketLoggingTypeGuaranteed {
596
+ bucketLogVolumes := []corev1.Volume {{
597
+ Name : r .BucketLoggingVolume ,
598
+ VolumeSource : corev1.VolumeSource {
599
+ PersistentVolumeClaim : & corev1.PersistentVolumeClaimVolumeSource {
600
+ ClaimName : r .BucketLoggingPVC .Name ,
601
+ },
602
+ },
603
+ }}
604
+ util .MergeVolumeList (& podSpec .Volumes , & bucketLogVolumes )
605
+ }
583
606
return nil
584
607
}
585
608
0 commit comments