Skip to content

Commit 5739fac

Browse files
Specific container to fix bad request error (#896)
1 parent 59bea22 commit 5739fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/logs/Logs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private static async Task Main(string[] args)
2323

2424
var response = await client.CoreV1.ReadNamespacedPodLogWithHttpMessagesAsync(
2525
pod.Metadata.Name,
26-
pod.Metadata.NamespaceProperty, follow: true).ConfigureAwait(false);
26+
pod.Metadata.NamespaceProperty, container: pod.Spec.Containers[0].Name, follow: true).ConfigureAwait(false);
2727
var stream = response.Body;
2828
stream.CopyTo(Console.OpenStandardOutput());
2929
}

0 commit comments

Comments
 (0)