Skip to content

Commit e183d85

Browse files
authored
Merge pull request #1360 from kube-logging/release-4.2
Sync changes from release 4.2
2 parents 2ac4359 + 7e1b2c8 commit e183d85

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

e2e/charts/logging-operator-logging/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
22
type: application
33
name: logging-operator-logging
4-
version: 4.2.0
5-
kubeVersion: ">=1.22"
4+
version: 4.2.2
5+
kubeVersion: ">=1.22.0-0"
66
description: A Helm chart to configure logging resource for the Logging operator.
77
keywords:
88
- logging
@@ -24,7 +24,7 @@ annotations:
2424
- name: syslog-ng
2525
image: ghcr.io/axoflow/axosyslog:4.2.0
2626
- name: logging-operator
27-
image: ghcr.io/kube-logging/logging-operator:4.2.0
27+
image: ghcr.io/kube-logging/logging-operator:4.2.1
2828
- name: config-reloader
2929
image: ghcr.io/kube-logging/config-reloader:v0.0.5
3030
- name: node-exporter

e2e/charts/logging-operator/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
apiVersion: v2
22
type: application
33
name: logging-operator
4-
version: 4.2.1
5-
appVersion: 4.2.0
6-
kubeVersion: ">=1.22"
4+
version: 4.2.3
5+
appVersion: 4.2.2
6+
kubeVersion: ">=1.22.0-0"
77
description: Logging operator for Kubernetes based on Fluentd and Fluentbit.
88
keywords:
99
- logging
@@ -19,4 +19,4 @@ annotations:
1919
description: Moved to to location
2020
artifacthub.io/images: |
2121
- name: logging-operator
22-
image: ghcr.io/kube-logging/logging-operator:4.2.0
22+
image: ghcr.io/kube-logging/logging-operator:4.2.1

pkg/resources/fluentbit/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ var fluentBitConfigTemplate = `
100100
Name forward
101101
Match *
102102
{{- if .Upstream.Enabled }}
103-
Upstream upstream.conf
103+
Upstream {{ .Upstream.Config.Path }}
104104
{{- else }}
105105
Host {{ .TargetHost }}
106106
Port {{ .TargetPort }}

pkg/resources/fluentbit/configsecret.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ type upstreamNode struct {
4646

4747
type upstream struct {
4848
Name string
49+
Path string
4950
Nodes []upstreamNode
5051
}
5152

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

324325
if r.fluentbitSpec.EnableUpstream {
325326
input.FluentForwardOutput.Upstream.Enabled = true
327+
input.FluentForwardOutput.Upstream.Config.Path = fmt.Sprintf("%s/%s", OperatorConfigPath, UpstreamConfigName)
326328
input.FluentForwardOutput.Upstream.Config.Name = "fluentd-upstream"
327329
for i := int32(0); i < utils.PointerToInt32(aggregatorReplicas); i++ {
328330
input.FluentForwardOutput.Upstream.Config.Nodes = append(input.FluentForwardOutput.Upstream.Config.Nodes, r.generateUpstreamNode(i))

pkg/resources/fluentbit/daemonset.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,6 @@ func (r *Reconciler) generateVolume() (v []corev1.Volume) {
221221
},
222222
},
223223
}
224-
if r.fluentbitSpec.EnableUpstream {
225-
volume.VolumeSource.Secret.Items = append(volume.VolumeSource.Secret.Items, corev1.KeyToPath{
226-
Key: UpstreamConfigName,
227-
Path: UpstreamConfigName,
228-
})
229-
}
230224
v = append(v, volume)
231225
} else {
232226
v = append(v, corev1.Volume{

0 commit comments

Comments
 (0)