Skip to content

Commit

Permalink
podname
Browse files Browse the repository at this point in the history
  • Loading branch information
dciangot committed Oct 30, 2023
1 parent a2eadbb commit fb5d7f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/virtualkubelet/virtualkubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,14 @@ func (p *VirtualKubeletProvider) GetLogs(ctx context.Context, namespace, podName

log.G(ctx).Infof("receive GetPodLogs %q", podName)

key, err := BuildKeyFromNames(namespace, podName)
if err != nil {
log.G(ctx).Error(err)
}

logsRequest := commonIL.LogStruct{
Namespace: namespace,
PodUID: string(p.pods[podName].UID),
PodUID: string(p.pods[key].UID),
PodName: podName,
ContainerName: containerName,
Opts: commonIL.ContainerLogOpts(opts),
Expand Down

0 comments on commit fb5d7f8

Please sign in to comment.