diff --git a/pkg/internal/wordpress/defaults.go b/pkg/internal/wordpress/defaults.go index 49e09543..b3e510b7 100644 --- a/pkg/internal/wordpress/defaults.go +++ b/pkg/internal/wordpress/defaults.go @@ -62,7 +62,7 @@ func (wp *Wordpress) SetDefaults() { if wp.Spec.MediaVolumeSpec != nil && wp.Spec.MediaVolumeSpec.MountPath == "" { if wp.Spec.CodeVolumeSpec != nil { - wp.Spec.MediaVolumeSpec.MountPath = path.Join(wp.Spec.MediaVolumeSpec.MountPath, mediaSubPath) + wp.Spec.MediaVolumeSpec.MountPath = path.Join(wp.Spec.CodeVolumeSpec.MountPath, mediaSubPath) } else { wp.Spec.MediaVolumeSpec.MountPath = defaultMediaMountPath }