Skip to content

Commit

Permalink
fix beats test failure (#8182)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvalliyurnatt authored Nov 6, 2024
1 parent 46b5630 commit 05b374b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/recipes/beats/metricbeat_hosts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
- -e
- -c
- /etc/beat.yml
- -system.hostfs=/hostfs
- --system.hostfs=/hostfs
name: metricbeat
volumeMounts:
- mountPath: /hostfs/sys/fs/cgroup
Expand Down
2 changes: 1 addition & 1 deletion config/recipes/beats/openshift_monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ spec:
- -e
- -c
- /etc/beat.yml
- -system.hostfs=/hostfs
- --system.hostfs=/hostfs
name: metricbeat
securityContext:
runAsUser: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
- -e
- -c
- /etc/beat.yml
- -system.hostfs=/hostfs
- --system.hostfs=/hostfs
name: metricbeat
volumeMounts:
- mountPath: /hostfs/sys/fs/cgroup
Expand Down
2 changes: 1 addition & 1 deletion deploy/eck-stack/examples/beats/metricbeat_hosts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ eck-beats:
- -e
- -c
- /etc/beat.yml
- -system.hostfs=/hostfs
- --system.hostfs=/hostfs
name: metricbeat
volumeMounts:
- mountPath: /hostfs/sys/fs/cgroup
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/beat/common/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func Test_buildPodTemplate(t *testing.T) {
RunAsUser: ptr.To[int64](0),
},
// The "-e" in these arguments should be removed
Args: []string{"-e", "-c", "/etc/beat.yml", "-system.hostfs=/hostfs"},
Args: []string{"-e", "-c", "/etc/beat.yml", "--system.hostfs=/hostfs"},
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/beat/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ processors:
- -e
- -c
- /etc/beat.yml
- -system.hostfs=/hostfs
- --system.hostfs=/hostfs
name: metricbeat
env:
- name: NODE_NAME
Expand Down

0 comments on commit 05b374b

Please sign in to comment.