Skip to content

Allow more output size for ssh output stream#2328

Merged
cb-github-robot merged 2 commits intocloud-barista:mainfrom
seokho-son:main
Feb 24, 2026
Merged

Allow more output size for ssh output stream#2328
cb-github-robot merged 2 commits intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Seokho Son <shsongist@gmail.com>
Copilot AI review requested due to automatic review settings February 24, 2026 12:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR increases output size limits for SSH command execution to better accommodate large outputs like base64-encoded kubeconfig files. It also improves the robustness of package manager process cleanup in Kubernetes setup scripts.

Changes:

  • Increased maxLogLineLen from 4KB to 128KB for SSH command streaming via SSE
  • Increased stdout/stderr history truncation limit from 1000 to 100000 bytes
  • Replaced pkill with safer pgrep | xargs kill pattern in K8s setup scripts

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
src/core/infra/remoteCommand.go Increases buffer sizes for SSH output streaming (4KB→128KB) and command history storage (1KB→100KB)
scripts/usecases/k8s/k8s-worker-setup.sh Replaces aggressive pkill with controlled pgrep|xargs kill for apt/dpkg cleanup
scripts/usecases/k8s/k8s-control-plane-setup.sh Same pkill to pgrep|xargs kill change as worker setup script

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Seokho Son <shsongist@gmail.com>
@seokho-son
Copy link
Copy Markdown
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Feb 24, 2026
@cb-github-robot cb-github-robot merged commit 5052325 into cloud-barista:main Feb 24, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved This PR is approved and will be merged soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants