-
When I press tab character, it takes tab as input white spaces instead of auto-completing, and if I use rancher, it works well And my code like this. var config = KubernetesClientConfiguration.BuildConfigFromConfigFile();
IKubernetes client = new Kubernetes(config);
var msgObj = new
{
PodName = "app-test-dev-55f447dfb5-jpznl",
ContainerName = "ubuntu"
};
var webSocket =
await client.WebSocketNamespacedPodExecAsync(
msgObj.PodName,
"default",
new List<string>()
{
"/bin/sh"
},
msgObj.ContainerName
)
.ConfigureAwait(false);
var demux = new StreamDemuxer(webSocket);
demux.Start();
var streamIn = demux.GetStream(ChannelIndex.StdIn, ChannelIndex.StdIn);
var streamOutput = demux.GetStream(ChannelIndex.StdOut, ChannelIndex.StdOut);
var t1 = Task.Run(async () => await Console.OpenStandardInput().CopyToAsync(streamIn));
var t2 = Task.Run(async () => await streamOutput.CopyToAsync(Console.OpenStandardOutput()));
await Task.WhenAny(t1, t2); Is there anything wrong with the code? |
Beta Was this translation helpful? Give feedback.
Answered by
tg123
Feb 5, 2023
Replies: 1 comment 4 replies
-
did you test |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
zxyao145
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
did you test
/bin/bash
?i do not think
sh
supports auto complete