Commit Graph
22 Commits
Author SHA1 Message Date
fengxsong d1857b0949 debug: more verbose logging for scp (#2254)
Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-13 10:53:20 +08:00
fengxsong 68c75852e1 fix: replace new line sep (#2228)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-09 10:58:35 +08:00
fengxsong 1c6d850ec7 fix: sftp with retry to prevent ssh failure from disrupting the entire process (#2225)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-08 23:59:05 +08:00
fengxsong 6cd4128f8e fix: move IsRootless out of pkg/buildah (#2207)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-07 17:58:02 +08:00
fengxsong 8f1701e6c6 enchance: optimizing ssh copy by replace default checkRemoteFileExists function (#2195)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-06 17:34:41 +08:00
fengxsong b12400c3fe Refactor ssh copy (#2186) 2022-12-05 15:49:41 +08:00
fengxsong 10c107b504 fix: copy empty merged dir anyway (#2182)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-03 16:35:25 +08:00
fengxsong 0eb9962229 feat: run sealos without root privileges (#2163)
* refactor: migrate buildah's subcommands

Signed-off-by: fengxsong <fengxsong@outlook.com>

* feat: rootless mode(almost done)

Signed-off-by: fengxsong <fengxsong@outlook.com>

* fix: set default values for --platform

Signed-off-by: fengxsong <fengxsong@outlook.com>

* fix: meet ci requirements

Signed-off-by: fengxsong <fengxsong@outlook.com>

* ci: add build-deps

Signed-off-by: fengxsong <fengxsong@outlook.com>

* style: define constants

Signed-off-by: fengxsong <fengxsong@outlook.com>

* feat: provide function to register default appliers

Signed-off-by: fengxsong <fengxsong@outlook.com>

* style: fix short descriptions of all subcommands

Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-02 14:59:14 +08:00
fengxsong eff2fbfaa1 feat: support registries HA (#2096)
* feat: support multiple registries

Signed-off-by: fengxsong <fengxsong@outlook.com>

* ci: remove unused functions

Signed-off-by: fengxsong <fengxsong@outlook.com>

* docs: add proposal doc

Signed-off-by: fengxsong <fengxsong@outlook.com>

* fix: adjust helper functions

Signed-off-by: fengxsong <fengxsong@outlook.com>

* refactor: bootstrap module

Signed-off-by: fengxsong <fengxsong@outlook.com>

* refactor dep to applier

Signed-off-by: fengxsong <fengxsong@outlook.com>

* refactor: split registry mirroring from mountrootfs

Signed-off-by: fengxsong <fengxsong@outlook.com>

* fix: format code

Signed-off-by: fengxsong <fengxsong@outlook.com>

* docs: add limitations section in proposal doc

Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-11-23 12:33:52 +08:00
中弈 969b16491d use user data to permit root login using ssh private key (#2136)
Signed-off-by: fanux <fanux@sealos.io>

Signed-off-by: fanux <fanux@sealos.io>
2022-11-22 21:59:16 +08:00
Mercurio b0e5e20605 fix: semgrep scan issues (#1881)
* fix semgrep scan issues for controllers, desktop and docker

Signed-off-by: Mercurio <signormercurio@gmail.com>

* fix semgrep scan issues for pkg/{auth,cert,client-go,cloud,config,image,registry}

Signed-off-by: Mercurio <signormercurio@gmail.com>

* fix: semgrep scan issues for pkg/{checker,config,image,registry,remote,template,utils}, docker, and fork

Signed-off-by: Mercurio <signormercurio@gmail.com>

* fix: change hash function for file comparing from md5 to sha256

Signed-off-by: Mercurio <signormercurio@gmail.com>

* fix: semgrep scan issues for service and staging

Signed-off-by: Mercurio <signormercurio@gmail.com>

* fix: pkg/cloud/index.html integrity issue

Signed-off-by: Mercurio <signormercurio@gmail.com>

* fix: pkg/cloud/index.html integrity issue

Signed-off-by: Mercurio <signormercurio@gmail.com>

* remove unused stylesheet temporary

Signed-off-by: Mercurio <signormercurio@gmail.com>

* improve coverage for pkg/apply/utils

Signed-off-by: Mercurio <signormercurio@gmail.com>

* improve coverage for pkg/apply/utils

Signed-off-by: Mercurio <signormercurio@gmail.com>

* improve coverage for pkg/apply/utils

Signed-off-by: Mercurio <signormercurio@gmail.com>

* improve coverage for pkg/apply/scale

Signed-off-by: Mercurio <signormercurio@gmail.com>

Signed-off-by: Mercurio <signormercurio@gmail.com>
2022-10-14 17:44:37 +08:00
HURUIZHE 2cdc0be7c5 Frontend and ssh add pkdata (#1831)
Signed-off-by: HURUIZHE <553834398@qq.com>
2022-10-13 12:58:45 +08:00
zzjin 349990e10a Fix lint error by replace os&io (#1504)
Signed-off-by: zzjin <tczzjin@gmail.com>
2022-08-10 00:30:37 +08:00
fengxsong e86d168be7 refactor ssh client (#1381)
* perf: ssh client

Signed-off-by: fengxsong <fengxsong@outlook.com>

* fix: use channel to collect all the returned errors

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-07-22 12:20:57 +08:00
cuisongliu 824aeccbdd feature(main): local ip not ping (#1363)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-07-21 15:42:34 +08:00
cuisongliu d7a6a74d72 fix(main): hotfix local ip (#1346)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-07-19 17:45:32 +08:00
cuisongliu 2ca357e07b refactor(main): add note for image and apt deb (#1307) (#1310)
* refactor(main): add note for image and apt deb (#1307)

Signed-off-by: cuisongliu <cuisongliu@qq.com>

# Conflicts:
#	.goreleaser.yml
#	scripts/release/note.sh

* refactor(main): add note for image and apt deb (#1307)

Signed-off-by: cuisongliu <cuisongliu@qq.com>

# Conflicts:
#	.goreleaser.yml
#	scripts/release/note.sh

* refactor(main): add note for image and apt deb (#1307)

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-07-15 17:11:06 +08:00
cuisongliu 2bd17b8cec refactor(main): sealos run other server (#1292)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-07-12 16:00:33 +08:00
cuisongliu 2167cb8e03 refactor(main): exec shell if local using exec (#1282)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-07-09 15:36:21 +08:00
cuisongliu aa29690df8 refactor(main): merge code from lvscare (#1249)
* refactor(main): merge code from image-cri-shim

refactor(main): merge code from lvscare

refactor(main): delete node using hostname

refactor(main): rename constants

* refactor(main): add main root

* refactor(main): add test workflows

* refactor(main): delete test workflows
2022-07-05 22:46:38 +08:00
cuisongliu 52c8612a0b feature(main): refactor: split ssh cmd into exec and scp(#996) (#1079)
* feature(main): refactor: split ssh cmd into exec and scp(#996)
2022-05-30 00:11:00 +08:00
cuisongliu 1a2471467c feature(main): add ssh exec/copy feature (#980) 2022-05-06 10:01:56 +08:00