Skip to content

Commit

Permalink
Revert #4431 and #4413 to remove journald mounts from log agent aga…
Browse files Browse the repository at this point in the history
…in (#4455)
  • Loading branch information
waodim authored Feb 12, 2025
1 parent ed279d3 commit 60dca1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions pkg/controllers/dynakube/logmonitoring/daemonset/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ const (
dockerLogsVolumePath = "/var/lib/docker/containers"
containerLogsVolumeName = "container-logs"
containerLogsVolumePath = "/var/log/containers"
journalLogsVolumeName = "var-log"
journalLogsVolumePath = "/var/log"
)

// getConfigVolumeMount provides the VolumeMount for the deployment.conf
Expand Down Expand Up @@ -105,11 +103,6 @@ func getIngestVolumeMounts() []corev1.VolumeMount {
MountPath: containerLogsVolumePath,
ReadOnly: true,
},
{
Name: journalLogsVolumeName,
MountPath: journalLogsVolumePath,
ReadOnly: true,
},
}
}

Expand Down Expand Up @@ -143,15 +136,6 @@ func getIngestVolumes() []corev1.Volume {
},
},
},
{
Name: journalLogsVolumeName,
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
Path: journalLogsVolumePath,
Type: ptr.To(corev1.HostPathDirectory),
},
},
},
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

const (
expectedMountLen = 7
expectedMountLen = 6
expectedInitMountLen = 2
)

Expand Down

0 comments on commit 60dca1b

Please sign in to comment.