Skip to content

Commit

Permalink
Fix usage of UpdateDBDirName
Browse files Browse the repository at this point in the history
  • Loading branch information
twelho committed Jun 28, 2023
1 parent 674ac83 commit adaeed0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/juicefs/mount/builder/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (r *Builder) getVolumes() []corev1.Volume {
Type: &dir,
},
}}, {
Name: "updatedb",
Name: UpdateDBDirName,
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
Path: "/etc/updatedb.conf",
Expand Down Expand Up @@ -158,7 +158,7 @@ func (r *Builder) getVolumeMounts() []corev1.VolumeMount {
MountPath: config.PodMountBase,
MountPropagation: &mp,
}, {
Name: "updatedb",
Name: UpdateDBDirName,
MountPath: "/etc/updatedb.conf",
MountPropagation: &mp,
}}
Expand Down
4 changes: 2 additions & 2 deletions pkg/juicefs/mount/builder/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var (
},
},
}, {
Name: "updatedb",
Name: UpdateDBDirName,
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
Path: "/etc/updatedb.conf",
Expand Down Expand Up @@ -106,7 +106,7 @@ var (
MountPropagation: &mp,
}, {

Name: "updatedb",
Name: UpdateDBDirName,
MountPath: "/etc/updatedb.conf",
MountPropagation: &mp,
},
Expand Down

0 comments on commit adaeed0

Please sign in to comment.