Skip to content

Commit 7e9bc25

Browse files
Update default filebeat image (#775)
1 parent f3fa383 commit 7e9bc25

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

controllers/spec/common.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ package spec
2020
import (
2121
"bytes"
2222
"context"
23-
24-
// used for template
2523
_ "embed"
2624
"encoding/json"
2725
"errors"
@@ -125,7 +123,7 @@ const (
125123
DefaultPythonLogConfigPath = PythonLogConifgDirectory + PythonLogConfigFile
126124

127125
DefaultFilebeatConfig = "/usr/share/filebeat/config/filebeat.yaml"
128-
DefaultFilebeatImage = "streamnative/filebeat:v0.6.0-rc7"
126+
DefaultFilebeatImage = "streamnative/filebeat:v0.6.0"
129127

130128
EnvGoFunctionLogLevel = "LOGGING_LEVEL"
131129

@@ -1114,7 +1112,7 @@ func parseJavaLogLevel(runtime *v1alpha1.JavaRuntime) string {
11141112
v1alpha1.LogLevelFatal: "FATAL",
11151113
v1alpha1.LogLevelOff: "OFF",
11161114
}
1117-
if runtime.Log != nil && runtime.Log.Level != "" && runtime.Log.LogConfig == nil {
1115+
if runtime.Log != nil && runtime.Log.Level != "" {
11181116
if level, exist := levelMap[runtime.Log.Level]; exist {
11191117
return level
11201118
}

controllers/spec/template/filebeat-config.yaml.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ filebeat.inputs:
33
paths:
44
- /pulsar/logs/functions/*.log
55
output.pulsar:
6+
fast_fail: true
67
url: \${brokerServiceURL}
78
topic: \${logTopic}
89
name: \${logName}

0 commit comments

Comments
 (0)