Commit Graph
86 Commits
Author SHA1 Message Date
cuisongliu 75c1fe1066 feature(main): add status cmd for post check (#2299)
* feature(main): add status cmd for post check
2022-12-27 10:46:32 +08:00
zzjin ed4fcd77ab Update SEALOS_SYS_KUBE_VERSION usage. (#2264)
* Remove unused pkg template func.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Update direct usage of SEALOS_SYS_KUBE_VERSION.
Remove unused template code.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Update go.mod

Signed-off-by: zzjin <tczzjin@gmail.com>

* Update nosemgrep

Signed-off-by: zzjin <tczzjin@gmail.com>

* Fix nosempreg

Signed-off-by: zzjin <tczzjin@gmail.com>

* Fix ci and add template test.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Add license

Signed-off-by: zzjin <tczzjin@gmail.com>

* Fix nosemgrep.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Fix lint.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Remove override to return error as except

Signed-off-by: zzjin <tczzjin@gmail.com>

Signed-off-by: zzjin <tczzjin@gmail.com>
2022-12-15 17:14:04 +08:00
cuisongliu 7426108cde feature(main): support v1 and v1alpha2 version cri (#2238)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-12-11 11:44:38 +08:00
中弈 f80b76e3b7 fix infra controller status, you must use make install to update the schema (#2128)
Signed-off-by: fanux <fanux@sealos.io>

Signed-off-by: fanux <fanux@sealos.io>
2022-11-21 19:38:40 +08:00
fengxsong 50a6cd10e2 fix: replace text/template from html/template (#2067)
* fix: replace text/template from html/template

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

* fix: semgrep ignore import-text-template finding

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

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-11-09 11:10:51 +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
cuisongliu 9f5c0ba602 feature(main): add registry sdk (#1746)
Signed-off-by: cuisongliu <cuisongliu@qq.com>

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-09-12 22:51:44 +08:00
fengxsong 5585754a92 refactor: applier (#1736)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-09-08 21:34:33 +08:00
fengxsong a0d59928a1 feat: support merging configs on run command (#1658)
* feat: support merging configs on run command

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

* fix: only overwrite spec when flag has changed

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

* fix: replace config rather than ignore it

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

* fix: use mergo for advanced merge

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

* chore: flag usage

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

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-09-01 22:48:25 +08:00
fengxsong effc876f17 feat: load clusterfile from template (#1523)
* feat: load clusterfile from template

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-08-18 18:56:53 +08:00
zzjin 1aa8fabd18 init kubernetes sdk (#1525)
Signed-off-by: zzjin <tczzjin@gmail.com>
2022-08-17 18:55:54 +08:00
zzjin bce587df9d fix typo by go fmt (#1507)
upgrade lint version to support `nolint:all`
fix nolint typo

Signed-off-by: zzjin <tczzjin@gmail.com>
2022-08-10 13:06:23 +08:00
zzjin 66d198bb52 manual fix fmt bug (#1505)
manual fix goimports
rebase typo

Signed-off-by: zzjin <tczzjin@gmail.com>
2022-08-10 00:36:23 +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
Mercurio f35f205acb refactor: unify the use of utils (#1498) 2022-08-09 09:37:27 +08:00
zzjin 10072d0e99 Fix ingress-nginx route rewrite. (#1474)
* Fix ingress-nginx route rewrite.
Update frontend typos.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Support expose kubernetes-dashboard
Support api post method

Signed-off-by: zzjin <tczzjin@gmail.com>

* update frontend location login

Signed-off-by: zzjin <tczzjin@gmail.com>
2022-08-06 13:59:13 +08:00
fengxsong 56ade35308 Fix sealos build (#1471)
* refactor: unified list image functions

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

* feat: render chart with custom values file

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

* test: testcase

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

* docs: add example for custom values

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-08-04 19:33:11 +08:00
zzjin 2f3f95bcf6 update login redirect (#1455)
try update callback api

Signed-off-by: zzjin <tczzjin@gmail.com>
2022-08-03 22:43:52 +08:00
fengxsong 6ab178bab8 feat: support netlink mode (#1424)
* feat: support netlink mode

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

* fix: remove testing dir

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

* replace modules with officials

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

* fix: license header

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

* fix: golanglint-ci warning

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

* fix: bump k8s.io/* deps version

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

* fix: errcheck, ignore it

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

* docs: add test case

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

* fix: add ipset into lvscare image

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

* docs: implementation details

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

* refactor: return fast

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

* fix: add durationOrSecond flag type for compatibility with previous usage

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-07-31 22:49:08 +08:00
zzjin 4a6350f039 add docker and readme (#1407)
Signed-off-by: zzjin <tczzjin@gmail.com>
2022-07-27 16:06:40 +08:00
cuisongliu a2e63ea304 feature(main): single module kubernetes cluster (#1396)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-07-25 19:26:26 +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
fengxsong 81764dfff1 perf: singleton just fine (#1374)
Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-07-21 22:18:04 +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
zzjin 7273d1261e support service modules: auth (#1347)
1. add first auth service
2. update workspace to support service/auth
3. move soem code to auth pkg and auth service

Signed-off-by: zzjin <tczzjin@gmail.com>
2022-07-21 09:56:08 +08:00
zzjin 8b1412d04e logger support fulltext color (#1362) 2022-07-21 00:19:25 +08:00
cuisongliu af49a1acc0 fix(main): delete logger for isLocal (#1359)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-07-20 21:45:19 +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
zsyaooandifnncc 84b5129838 upgrade IsIpv4 function use to system api (#1326)
Co-authored-by: ifnncc <ifnncc@gmail.com>
2022-07-19 00:56:48 +08:00
zzjin 66012a2d1a Unite log system with zap (#1300)
* replace sysytem log to logger
* replace old logger code
* remove logrus package
* replace glog with new impl

Signed-off-by: zzjin <tczzjin@gmail.com>
2022-07-17 01:19:14 +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
Mercurio 0b91bdeb5e ci: multiple improvements on CI workflow (#1270)
* ci: multiple improvements on CI workflow

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

* attempt to fix lint actions error

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

* delete fossa actions

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

* attempt to solve lint error

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

* format code

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

* attempt to fix lint error

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

* fix lint error

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

* fix nolint syntax error

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

* completely fix lint error

Signed-off-by: Mercurio <signormercurio@gmail.com>
2022-07-08 21:54:48 +08:00
cuisongliu 429bf9eed6 refactor(main): add test delete node workflows (#1262)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-07-07 15:14:09 +08:00
zzjin f347cf5242 Merge pull request #1256 from cuisongliu/test
refactor(main): add test workflows
2022-07-05 23:14:48 +08:00
cuisongliu f27e0f4802 refactor(main): add test workflows 2022-07-05 22:54:17 +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 3423bf0e3c refactor(main): delete node using hostname (#1254)
* refactor(main): delete node using hostname
2022-07-05 17:00:00 +08:00
cuisongliu 5ffcdb0bd2 refactor(main): pkg/hosts->utils, pkg/token->pkg/runtime/token 2022-07-04 14:57:40 +08:00
cuisongliu 7146cfe47a feature(main): update lvscare sdk multiple network (#1212)
* feature(main): update lvscare sdk multiple network
2022-06-30 22:02:12 +08:00
zzjin 2ef083dfc3 Feat typo (#1170)
* Update cmd typos to match unified code format.
* 1. Update Dockerfile install typo
2. run&fix `make format` on all files
2022-06-24 22:44:12 +08:00
Mercurio d24d09f16a refactor: change "contants" to "constants" (#1142) 2022-06-21 13:41:40 +08:00
fengxsong 39be7b74d4 fix: validate vip before initialization (#1130)
* fix: validate vip before initialization

* fix: ci lints
2022-06-16 19:03:25 +08:00
Mercurio aa52856326 feat: include .tmpl files when searching for images (#1096) 2022-05-30 18:44:02 +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
Mercurio c850bf5432 feat: make cluster root dir customizable with root cmd flags (#995) (#1073) 2022-05-29 00:14:17 +08:00
cuisongliu eae61dcd00 feature(main): fix delete add node and skip error (#1027)
* feature(main): fix delete add node and skip error
2022-05-17 14:45:28 +08:00
cuisongliu 8ffd9921be feature(main): fix images mount to status (#974) 2022-05-03 16:03:42 +08:00
cuisongliu 8b61e7907a feature(main): fix rename go mod (#973) 2022-05-01 09:36:23 +08:00
cuisongliu 71ab86a6ca feature(main): fix vendor for sealos (#970) 2022-04-30 13:34:39 +08:00