Skip to content

Commit

Permalink
Merge pull request #1360 from kube-logging/release-4.2
Browse files Browse the repository at this point in the history
Sync changes from release 4.2
  • Loading branch information
pepov authored Jun 14, 2023
2 parents 2ac4359 + 7e1b2c8 commit e183d85
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
6 changes: 3 additions & 3 deletions e2e/charts/logging-operator-logging/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
type: application
name: logging-operator-logging
version: 4.2.0
kubeVersion: ">=1.22"
version: 4.2.2
kubeVersion: ">=1.22.0-0"
description: A Helm chart to configure logging resource for the Logging operator.
keywords:
- logging
Expand All @@ -24,7 +24,7 @@ annotations:
- name: syslog-ng
image: ghcr.io/axoflow/axosyslog:4.2.0
- name: logging-operator
image: ghcr.io/kube-logging/logging-operator:4.2.0
image: ghcr.io/kube-logging/logging-operator:4.2.1
- name: config-reloader
image: ghcr.io/kube-logging/config-reloader:v0.0.5
- name: node-exporter
Expand Down
8 changes: 4 additions & 4 deletions e2e/charts/logging-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v2
type: application
name: logging-operator
version: 4.2.1
appVersion: 4.2.0
kubeVersion: ">=1.22"
version: 4.2.3
appVersion: 4.2.2
kubeVersion: ">=1.22.0-0"
description: Logging operator for Kubernetes based on Fluentd and Fluentbit.
keywords:
- logging
Expand All @@ -19,4 +19,4 @@ annotations:
description: Moved to to location
artifacthub.io/images: |
- name: logging-operator
image: ghcr.io/kube-logging/logging-operator:4.2.0
image: ghcr.io/kube-logging/logging-operator:4.2.1
2 changes: 1 addition & 1 deletion pkg/resources/fluentbit/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ var fluentBitConfigTemplate = `
Name forward
Match *
{{- if .Upstream.Enabled }}
Upstream upstream.conf
Upstream {{ .Upstream.Config.Path }}
{{- else }}
Host {{ .TargetHost }}
Port {{ .TargetPort }}
Expand Down
2 changes: 2 additions & 0 deletions pkg/resources/fluentbit/configsecret.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type upstreamNode struct {

type upstream struct {
Name string
Path string
Nodes []upstreamNode
}

Expand Down Expand Up @@ -323,6 +324,7 @@ func (r *Reconciler) configSecret() (runtime.Object, reconciler.DesiredState, er

if r.fluentbitSpec.EnableUpstream {
input.FluentForwardOutput.Upstream.Enabled = true
input.FluentForwardOutput.Upstream.Config.Path = fmt.Sprintf("%s/%s", OperatorConfigPath, UpstreamConfigName)
input.FluentForwardOutput.Upstream.Config.Name = "fluentd-upstream"
for i := int32(0); i < utils.PointerToInt32(aggregatorReplicas); i++ {
input.FluentForwardOutput.Upstream.Config.Nodes = append(input.FluentForwardOutput.Upstream.Config.Nodes, r.generateUpstreamNode(i))
Expand Down
6 changes: 0 additions & 6 deletions pkg/resources/fluentbit/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,6 @@ func (r *Reconciler) generateVolume() (v []corev1.Volume) {
},
},
}
if r.fluentbitSpec.EnableUpstream {
volume.VolumeSource.Secret.Items = append(volume.VolumeSource.Secret.Items, corev1.KeyToPath{
Key: UpstreamConfigName,
Path: UpstreamConfigName,
})
}
v = append(v, volume)
} else {
v = append(v, corev1.Volume{
Expand Down

0 comments on commit e183d85

Please sign in to comment.