From 147dfaa4f089ee031d9d226e8e08927e60045307 Mon Sep 17 00:00:00 2001 From: "Chen.Zhidong" Date: Fri, 25 May 2018 14:59:21 +0800 Subject: [PATCH] use redisImage instead of alpine In offline mode we need to define image by outselves. so we may reuse the redis image to do the cp. --- operator/redisfailover/service/generator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/redisfailover/service/generator.go b/operator/redisfailover/service/generator.go index 34a59f6e6..eed57df2a 100644 --- a/operator/redisfailover/service/generator.go +++ b/operator/redisfailover/service/generator.go @@ -262,7 +262,7 @@ func generateSentinelDeployment(rf *redisfailoverv1alpha2.RedisFailover, labels InitContainers: []corev1.Container{ { Name: "sentinel-config-copy", - Image: "alpine", + Image: redisImage, ImagePullPolicy: "IfNotPresent", VolumeMounts: []corev1.VolumeMount{ {