Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions controllers/spec/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2387,7 +2387,7 @@
return subscription
}

func makeFilebeatContainer(volumeMounts []corev1.VolumeMount, envVar []corev1.EnvVar, name string, logTopic string,

Check failure on line 2390 in controllers/spec/common.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.24.4)

`makeFilebeatContainer` - `name` is unused (unparam)

Check failure on line 2390 in controllers/spec/common.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.22.12)

`makeFilebeatContainer` - `name` is unused (unparam)

Check failure on line 2390 in controllers/spec/common.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.22.12)

`makeFilebeatContainer` - `name` is unused (unparam)

Check failure on line 2390 in controllers/spec/common.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.24.4)

`makeFilebeatContainer` - `name` is unused (unparam)
agent v1alpha1.LogTopicAgent, tlsConfig TLSConfig, authConfig *v1alpha1.AuthConfig,
pulsarConfig string, authSecret string, tlsSecret string, image string) *corev1.Container {
if logTopic == "" || agent != v1alpha1.SIDECAR {
Expand All @@ -2407,8 +2407,8 @@
Name: "logTopic",
Value: logTopic,
}, corev1.EnvVar{
Name: "logName",
Value: name,
Name: "POD_NAME",
ValueFrom: &corev1.EnvVarSource{FieldRef: &corev1.ObjectFieldSelector{FieldPath: "metadata.name"}},
})

if authConfig != nil {
Expand Down
2 changes: 1 addition & 1 deletion controllers/spec/template/filebeat-config.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ output.pulsar:
fast_fail: true
url: \${brokerServiceURL}
topic: \${logTopic}
name: \${logName}
name: \${POD_NAME}
token: \${clientAuthenticationParameters:""}
oauth2:
enabled: \${oauth2Enabled:false}
Expand Down
Loading