Skip to content

Commit

Permalink
Switch to emptyDir for /var/run shared by ovn-c containers
Browse files Browse the repository at this point in the history
The directory carries unix socket, pid, ctl files but nothing that would
require persistence.
  • Loading branch information
booxter committed Dec 15, 2023
1 parent b22e336 commit a9095b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/ovncontroller/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ func GetVolumes(name string, namespace string) []corev1.Volume {
{
Name: "var-run",
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
Path: fmt.Sprintf("/var/home/core/%s/var/run/openvswitch", namespace),
Type: &directoryOrCreate,
},
EmptyDir: &corev1.EmptyDirVolumeSource{},
},
},
{
Expand Down

0 comments on commit a9095b8

Please sign in to comment.