Skip to content
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

How to automatically default and avoid interactive input Do you want to continue on 'haisen1' cluster? Input 'haisen1' to continue #5498

Closed
lhsaq2009 opened this issue Mar 23, 2025 · 2 comments
Labels
kind/feature New feature or request

Comments

@lhsaq2009
Copy link

What is the problem this feature will solve?

[root@haisen1 ~]# sealos run registry.cn-shanghai.aliyuncs.com/labring/kubernetes:v1.28.14            registry.cn-shanghai.aliyuncs.com/labring/helm:v3.15.4                   registry.cn-shanghai.aliyuncs.com/labring/cilium:v1.15.8           --masters $MASTER_NODE_1                                                 -p Hxxxxxxen123
2025-03-23T12:46:49 info start to install app in this cluster
2025-03-23T12:46:49 info Executing SyncStatusAndCheck Pipeline in InstallProcessor
2025-03-23T12:46:49 info Executing ConfirmOverrideApps Pipeline in InstallProcessor
2025-03-23T12:46:49 info are you sure to override these following apps?
registry.cn-shanghai.aliyuncs.com/labring/kubernetes:v1.28.14
registry.cn-shanghai.aliyuncs.com/labring/helm:v3.15.4
registry.cn-shanghai.aliyuncs.com/labring/cilium:v1.15.8
✗ Do you want to continue on 'haisen1' cluster? Input 'haisen1' to continue: █

我想在脚本里执行,但是它会阻塞住

If you have solution,please describe it

No response

What alternatives have you considered?

No response

@lhsaq2009 lhsaq2009 added the kind/feature New feature or request label Mar 23, 2025
@sealos-ci-robot sealos-ci-robot changed the title 如何自动默认,避免交互输入 Do you want to continue on 'haisen1' cluster? Input 'haisen1' to continue How to automatically default and avoid interactive input Do you want to continue on 'haisen1' cluster? Input 'haisen1' to continue Mar 23, 2025
@bxy4543
Copy link
Member

bxy4543 commented Mar 24, 2025

try: sealos run xxx -f

@lhsaq2009
Copy link
Author

try: sealos run xxx -f

 --cluster='default'                                                 \
 --force                                                             \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants