Skip to content

Commit

Permalink
fix: expose ports on collector statefulset
Browse files Browse the repository at this point in the history
Signed-off-by: Grégory Cuellar <gregory.cuellar@gmail.com>
  • Loading branch information
gregorycuellar committed Sep 12, 2023
1 parent 8e3b536 commit 2c48004
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/operator/collector-statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ func MakefbStatefulset(co fluentbitv1alpha2.Collector) *appsv1.StatefulSet {
statefulset.Spec.Template.Spec.Containers[0].VolumeMounts = append(statefulset.Spec.Template.Spec.Containers[0].VolumeMounts, co.Spec.VolumesMounts...)
}

if co.Spec.Ports != nil {
statefulset.Spec.Template.Spec.Containers[0].Ports = append(statefulset.Spec.Template.Spec.Containers[0].Ports, co.Spec.Ports...)
}

// Mount Secrets
for _, secret := range co.Spec.Secrets {
statefulset.Spec.Template.Spec.Volumes = append(statefulset.Spec.Template.Spec.Volumes, corev1.Volume{
Expand Down

0 comments on commit 2c48004

Please sign in to comment.