зеркало из https://github.com/docker/compose-cli.git
Kube: Fix logs filter
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
Родитель
9ec5af76cd
Коммит
05c4caef95
|
@ -96,6 +96,7 @@ func (kc *KubeClient) GetLogs(ctx context.Context, projectName string, consumer
|
|||
for _, pod := range pods.Items {
|
||||
request := kc.client.CoreV1().Pods(kc.namespace).GetLogs(pod.Name, &corev1.PodLogOptions{Follow: follow})
|
||||
service := pod.Labels[compose.ServiceTag]
|
||||
|
||||
w := utils.GetWriter(pod.Name, service, string(pod.UID), func(event compose.ContainerEvent) {
|
||||
consumer.Log(event.Name, event.Service, event.Source, event.Line)
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче