Skip to content

Commit

Permalink
Remove var-lib hostMount from ovn-controller pod
Browse files Browse the repository at this point in the history
I am not aware of anything using the directory.
  • Loading branch information
booxter committed Jan 4, 2024
1 parent 87ca3ca commit a76e967
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions pkg/ovncontroller/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ func GetVolumes(name string, namespace string) []corev1.Volume {
EmptyDir: &corev1.EmptyDirVolumeSource{},
},
},
{
Name: "var-lib",
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
Path: fmt.Sprintf("/var/home/core/%s/var/lib/openvswitch", namespace),
Type: &directoryOrCreate,
},
},
},
{
Name: "scripts",
VolumeSource: corev1.VolumeSource{
Expand Down Expand Up @@ -66,11 +57,6 @@ func GetOvsDbVolumeMounts() []corev1.VolumeMount {
MountPath: "/var/run/openvswitch",
ReadOnly: false,
},
{
Name: "var-lib",
MountPath: "/var/lib/openvswitch",
ReadOnly: false,
},
{
Name: "scripts",
MountPath: "/usr/local/bin/container-scripts",
Expand All @@ -87,11 +73,6 @@ func GetVswitchdVolumeMounts() []corev1.VolumeMount {
MountPath: "/var/run/openvswitch",
ReadOnly: false,
},
{
Name: "var-lib",
MountPath: "/var/lib/openvswitch",
ReadOnly: false,
},
}
}

Expand Down

0 comments on commit a76e967

Please sign in to comment.