Skip to content

Commit

Permalink
Merge pull request #917 from gregorycuellar/master
Browse files Browse the repository at this point in the history
Expose ports on collector statefulset
  • Loading branch information
benjaminhuo committed Sep 12, 2023
2 parents 8e3b536 + 2c48004 commit fdbf8e1
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 fdbf8e1

Please sign in to comment.