Skip to content

Commit

Permalink
chore: fix constants err
Browse files Browse the repository at this point in the history
  • Loading branch information
lwpk110 committed Aug 21, 2024
1 parent 10b5840 commit 6abe769
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/controller/journal/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

hdfsv1alpha1 "github.com/zncdatadev/hdfs-operator/api/v1alpha1"
"github.com/zncdatadev/hdfs-operator/internal/common"
"github.com/zncdatadev/operator-go/pkg/constants"
"github.com/zncdatadev/operator-go/pkg/util"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/intstr"
Expand Down Expand Up @@ -48,15 +49,15 @@ func (d *ContainerBuilder) VolumeMount() []corev1.VolumeMount {
jnMounts := []corev1.VolumeMount{
{
Name: hdfsv1alpha1.HdfsConfigVolumeMountName,
MountPath: hdfsv1alpha1.KubedoopConfigDirMount + "/" + d.ContainerName(),
MountPath: constants.KubedoopConfigDirMount + "/" + d.ContainerName(),
},
{
Name: hdfsv1alpha1.HdfsLogVolumeMountName,
MountPath: hdfsv1alpha1.KubedoopLogDirMount + "/" + d.ContainerName(),
MountPath: constants.KubedoopLogDirMount + "/" + d.ContainerName(),
},
{
Name: hdfsv1alpha1.DataVolumeMountName,
MountPath: hdfsv1alpha1.KubedoopRootDataDir, // note:do not use hdfsv1alpha1.JournalNodeRootDataDir
MountPath: constants.KubedoopDataDir, // note:do not use hdfsv1alpha1.JournalNodeRootDataDir
},
}
return append(mounts, jnMounts...)
Expand Down

0 comments on commit 6abe769

Please sign in to comment.