forked from rook/rook
Use the same logrotate flow of rbd, as merged in #14305 1) Make the csi cephfs and nfs container logs persisted in a file 2) Use the cephcluster api specs to configure the log rotate 3) Add log rotation to rotate the log file and Add a sidecar log collector container And some fixes on the implementation: 1) Add a operator namespace in the log file path 2) Only add volume to the container if logrotate is enabled Closes: https://github.com/rook/rook/issues/12809, https://github.com/rook/rook/issues/14429 Signed-off-by: parth-gr <partharora1010@gmail.com>