Skip to content

Commit c757434

Browse files
committed
review updates
Signed-off-by: grokspawn <[email protected]>
1 parent acdd77f commit c757434

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/controller/registry/reconciler/reconciler.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,13 +322,13 @@ func Pod(source *operatorsv1alpha1.CatalogSource, name, opmImg, utilImage, img s
322322
} else {
323323
// opm serve does not allow us to specify an empty cache directory, which means that it will
324324
// only create new caches in /tmp/, so we need to provide adequate write access there
325-
const tmpdirPath = "/tmp/"
325+
const tmpdirName = "tmpdir"
326326
tmpdirVolumeMount := corev1.VolumeMount{
327-
Name: "tmpdir",
328-
MountPath: tmpdirPath,
327+
Name: tmpdirName,
328+
MountPath: "/tmp/",
329329
}
330330
pod.Spec.Volumes = append(pod.Spec.Volumes, corev1.Volume{
331-
Name: "tmpdir",
331+
Name: tmpdirName,
332332
VolumeSource: corev1.VolumeSource{
333333
EmptyDir: &corev1.EmptyDirVolumeSource{},
334334
},

0 commit comments

Comments
 (0)