-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chef 11169 optimize k8s container connection v2 #22
base: main
Are you sure you want to change the base?
Chef 11169 optimize k8s container connection v2 #22
Conversation
Signed-off-by: Sathish Babu <[email protected]>
…hell Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
This allows to use only single session Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
- set reader, writer and PID - define reconnect logic - load session at class level Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
Signed-off-by: Sathish Babu <[email protected]>
Train::Extras::CommandResult.new("", "", 1) | ||
end | ||
|
||
private | ||
def strip_ansi_sequences(text) | ||
text.gsub(/\e\[.*?m/, "").gsub(/\e\]0;.*?\a/, "").gsub(/\e\[A/, "").gsub(/\e\[C/, "").gsub(/\e\[K/, "") |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data High
regular expression
library input
Train::Extras::CommandResult.new("", "", 1) | ||
end | ||
|
||
private | ||
def strip_ansi_sequences(text) | ||
text.gsub(/\e\[.*?m/, "").gsub(/\e\]0;.*?\a/, "").gsub(/\e\[A/, "").gsub(/\e\[C/, "").gsub(/\e\[K/, "") |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data High
regular expression
library input
Train::Extras::CommandResult.new(res.stdout, res.stderr, res.exitstatus) | ||
rescue Errno::ENOENT => _e | ||
def connect | ||
@reader, @writer, @pid = PTY.spawn("kubectl exec --stdin --tty #{@pod} -n #{@namespace} -c #{@container_name} -- /bin/bash") |
Check warning
Code scanning / CodeQL
Unsafe shell command constructed from library input Medium
library input
shell command
This string construction which depends on
library input
shell command
This string construction which depends on
library input
shell command
This string construction which depends on
library input
shell command
This string construction which depends on
library input
shell command
This string construction which depends on
Optimise the Persistent connection to K8s container
Description
Related Issue
Types of changes
Checklist: