Skip to content

Commit cac503f

Browse files
committed
set config path in args to support logging image
1 parent 5502c57 commit cac503f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

internal/controller/loki/loki_objects.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package loki
22

33
import (
4+
"fmt"
45
"hash/fnv"
56
"strconv"
67

@@ -115,8 +116,11 @@ func (b *builder) podTemplate(name, cmDigest string) *corev1.PodTemplateSpec {
115116
},
116117
Spec: corev1.PodSpec{
117118
Containers: []corev1.Container{{
118-
Name: name,
119-
Image: b.info.Images[reconcilers.MainImage],
119+
Name: name,
120+
Image: b.info.Images[reconcilers.MainImage],
121+
Args: []string{
122+
fmt.Sprintf("-config.file=%s/%s", configPath, configFile),
123+
},
120124
VolumeMounts: b.volumes.AppendMounts(volumeMounts),
121125
SecurityContext: helper.ContainerDefaultSecurityContext(),
122126
}},

0 commit comments

Comments
 (0)