We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 601ff3d commit 8bee6e1Copy full SHA for 8bee6e1
pkg/operator/collector-statefulset.go
@@ -17,14 +17,19 @@ var (
17
)
18
19
func MakefbStatefulset(co fluentbitv1alpha2.Collector) *appsv1.StatefulSet {
20
+ replicas := int32(1)
21
+ if co.Spec.Replicas != nil {
22
+ replicas = *co.Spec.Replicas
23
+ }
24
+
25
statefulset := appsv1.StatefulSet{
26
ObjectMeta: metav1.ObjectMeta{
27
Name: co.Name,
28
Namespace: co.Namespace,
29
Labels: co.Labels,
30
},
31
Spec: appsv1.StatefulSetSpec{
- Replicas: co.Spec.Replicas,
32
+ Replicas: &replicas,
33
Selector: &metav1.LabelSelector{
34
MatchLabels: co.Labels,
35
0 commit comments