Skip to content

Commit

Permalink
Fix default media mount path
Browse files Browse the repository at this point in the history
  • Loading branch information
vtemian authored and calind committed Jan 30, 2020
1 parent cd614d0 commit 9c89d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/wordpress/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9c89d07

Please sign in to comment.