Skip to content

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
gabemontero committed Feb 26, 2024
1 parent 8483240 commit 6b60d3e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/watcher/reconciler/dynamic/dynamic.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,18 @@ func (r *Reconciler) streamLogs(ctx context.Context, o results.Object, labelKey,
containers = append(containers, pod.Spec.Containers...)
for _, container := range containers {
pipelineName := pod.Labels[pipeline.PipelineLabelKey]
pipelineTaskName := pod.Labels[pipeline.PipelineTaskLabelKey]
taskName := pod.Labels[pipeline.TaskLabelKey]
logger.Infow("GGMGGM labels",
zap.String("pipeline", pipelineName),
zap.String("pipelineTask", pipelineTaskName),
zap.String("task", taskName))

ba, podLogsErr := r.getPodLogs(ctx, o.GetNamespace(), pod.Name, container.Name, labelKey, taskName)
task := taskName
if len(task) == 0 {
task = pipelineTaskName
}
ba, podLogsErr := r.getPodLogs(ctx, o.GetNamespace(), pod.Name, container.Name, labelKey, task)
if podLogsErr != nil {
return podLogsErr
}
Expand Down

0 comments on commit 6b60d3e

Please sign in to comment.