From d804b407a3fea83dd0ade3fd7b9dec24b529a69f Mon Sep 17 00:00:00 2001 From: Calin Don Date: Thu, 6 Jun 2019 15:05:14 +0300 Subject: [PATCH] Inject credentials into bootstrap init container --- pkg/internal/wordpress/pod_template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/wordpress/pod_template.go b/pkg/internal/wordpress/pod_template.go index 94981be3..0a6c64a2 100644 --- a/pkg/internal/wordpress/pod_template.go +++ b/pkg/internal/wordpress/pod_template.go @@ -373,7 +373,7 @@ func (wp *Wordpress) installWPContainer() []corev1.Container { Image: wp.image(), Args: installCmd, VolumeMounts: wp.volumeMounts(), - Env: wp.env(), + Env: append(wp.env(), wp.Spec.WordpressBootstrapSpec.Env...), EnvFrom: wp.envFrom(), }, }