From 9c89d07c819935cd3336fac2daafc6f9fb6cd19c Mon Sep 17 00:00:00 2001 From: Vlad Temian Date: Thu, 30 Jan 2020 18:39:42 +0200 Subject: [PATCH] Fix default media mount path --- pkg/internal/wordpress/defaults.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }