Skip to content

Commit

Permalink
avoid delay on launch
Browse files Browse the repository at this point in the history
  • Loading branch information
Chus committed Dec 2, 2019
1 parent 8cf8d8c commit c8553c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion operator/redisfailover/service/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"

appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
policyv1beta1 "k8s.io/api/policy/v1beta1"
"k8s.io/apimachinery/pkg/api/resource"
Expand Down Expand Up @@ -233,8 +234,9 @@ func generateRedisStatefulSet(rf *redisfailoverv1.RedisFailover, labels map[stri
ServiceName: name,
Replicas: &rf.Spec.Redis.Replicas,
UpdateStrategy: appsv1.StatefulSetUpdateStrategy{
Type: "OnDelete",
Type: v1.OnDeleteStatefulSetStrategyType,
},
PodManagementPolicy: v1.ParallelPodManagement,
Selector: &metav1.LabelSelector{
MatchLabels: selectorLabels,
},
Expand Down

0 comments on commit c8553c4

Please sign in to comment.