Commit Graph
1941 Commits
Author SHA1 Message Date
晓杰 fd8ae0dfd6 feat: refactor metering ,support Third-party resource access and idempotent (#2258)
* feat:design metering、podresource、resource api type
* metering watch user ns and create
* feat:add e2e test about metering watch ns
* feat:metering watch extensionResourcePrice
* feat:pod-controller create resurce CR logic
* feat:metering watch Resource create by resource-Controller and update Metering
* feat:metering create AccountBalance and account will watch it and deduction balancde
* feat:add infra calculate test
* feat:add deploy.yaml and temporary ci
* feat:change account ns to sealos-system
* fix:update resourceName
* feat:add deduction info to account chargelist
* fix:payment error
* fix:update resource name
* Modify inappropriate places in the code by github Comment

Signed-off-by: 晓杰 <2561589453@qq.com>
2022-12-29 14:43:06 +08:00
cuisongliu c0d082cce5 feature: add merge feature (#2283)
* feature(main): add merge logic

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

* feature(main): add merge feature

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-12-29 12:28:56 +08:00
zhujingyang c8cb3c1841 fix(desktop: ): infra status & add loading created (#2307) 2022-12-29 10:29:27 +08:00
fengxsong 08c1b069aa fix: set SkipTLSVerify to true for SystemConext when there is a potential remote lookup operation (#2316)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-28 22:53:51 +08:00
lingdie a37aaaed4b feat. add org muator, add admit for kube-system group (#2309)
* add org mutator.

* replace prefix.

* fix denie kube-system

* unique manager.
2022-12-28 21:30:58 +08:00
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 76b6298e5b Update registry dox (#2298)
Signed-off-by: zzjin <tczzjin@gmail.com>
2022-12-27 00:05:24 +08:00
lingdie eeb4fa23b4 update datapacks rbac. (#2303) 2022-12-27 00:04:11 +08:00
cuisongliu 4c3fa6c06d feature(main): change default archive is oci (#2304)
* feature(main): change default archive is oci

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

# Conflicts:
#	pkg/buildah/save.go

* feature(main): change default archive is oci

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

# Conflicts:
#	pkg/buildah/save.go
2022-12-26 21:27:41 +08:00
lingdie 0d8743287a feat.add image keywords as repo label. (#2291)
* add labels for keywords.

* make to gen codes.

* fix logic error.

* add keyword check.

* fix review.

* fix lint.

* fix
2022-12-26 20:14:37 +08:00
晓杰 7691deabf2 fix:payment add defaultcallbackURL (#2300)
Signed-off-by: 晓杰 <2561589453@qq.com>
2022-12-26 10:15:08 +08:00
zhujingyang 59a941d162 feat(desktop): add pgsql users & delete iops througput
Signed-off-by: zhu jing yang <3161362058@qq.com>
2022-12-23 17:04:48 +08:00
zzjin 4fbcb41e53 Fix crypto usage. (#2296)
Signed-off-by: zzjin <tczzjin@gmail.com>

Signed-off-by: zzjin <tczzjin@gmail.com>
2022-12-23 13:35:17 +08:00
fengxsong 3581779e8f fix: more friendly error output when running rootless mode (#2287)
* fix: more friendly error output when running rootless mode without required uidmap/fuse-overlayfs

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

* fix: add cert to unrelated command names

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

* fix: string slice is just fine

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

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-23 13:04:37 +08:00
Meteorite 1dee9233c3 fix: ensure consistency when crash & fix some bugs (#2259)
Signed-off-by: xiaohan <962479661@qq.com>
2022-12-23 11:50:29 +08:00
晓杰 164b4a7ca1 fix:fix queryPrice error (#2293)
Signed-off-by: 晓杰 <2561589453@qq.com>
2022-12-22 16:57:38 +08:00
zhujingyang 422fc2bcc1 feat(desktop): impl pgsql provider
* init pgsql & add react hook form & add pgsql service api

Signed-off-by: zhu jing yang <3161362058@qq.com>

* add pgsql service and secret & pgsqlStatus and button component

Signed-off-by: zhu jing yang <3161362058@qq.com>

* modified Deleted the pgsql code & adds the creat pgsql  status

Signed-off-by: zhu jing yang <3161362058@qq.com>

* modify currentapp in the appstore & ts constraint

Signed-off-by: zhu jing yang <3161362058@qq.com>

Signed-off-by: zhu jing yang <3161362058@qq.com>
2022-12-22 16:01:20 +08:00
zhihui 747f205fc4 bugfix: Apply twice will call initCluster twice that causes kubelet port occupied. (#2292) 2022-12-22 15:09:44 +08:00
cuisongliu 88c1746ba7 feature(main): add cert cmd for append certs (#2116)
* feature(main): add cert cmd for append certs

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

* feature(main): add cert cmd

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

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-12-21 14:27:17 +08:00
lingdie d4e00dbf9a add registry deply config. (#2275)
* add registry deploy.

* use oss.

* move dir.

* fix

* update deploy config.

* update deploy config.

* move dir, add README.md

* use cdn. use labring/registry:main as image.

* add README.md
2022-12-20 14:58:36 +08:00
fengxsong 2ca3820604 refactor buildah interface, arguments as flagsetters (#2281)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-19 16:28:48 +08:00
gitccl 1119a94e26 feat: deploy terminal in user's namespace and support apisix ingress (#2280) 2022-12-19 12:41:13 +08:00
cdjianghan 0b9652f714 add action operator implement and crd (#2247)
add app crd and app operator structure
2022-12-18 12:01:07 +08:00
cuisongliu 74e0c20cee feature(main): add rc3 change_log (#2277)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-12-18 11:33:51 +08:00
cuisongliu 2914048a53 feature(main): change apply logic (#2278)
Signed-off-by: cuisongliu <cuisongliu@qq.com>

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-12-17 17:59:21 +08:00
fengxsong 01b5a60ebb mark tls-verify flag hidden (#2279)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-17 17:19:07 +08:00
fengxsong 76c1ef5a27 fix: only set default --platform flag when it's not changed (#2276)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-17 10:57:25 +08:00
zhujingyang 6e58ab9f76 modify the scp yaml field (#2261)
Signed-off-by: zhu jing yang <3161362058@qq.com>
2022-12-16 15:58:55 +08:00
zzjin 38f378f89d Update terminal frontend, use user‘s namespace. (#2270)
Signed-off-by: zzjin <tczzjin@gmail.com>
2022-12-16 15:18:39 +08:00
fengxsong 8538cd8fc4 fix: skip handling app type image while scaling cluster (#2273)
Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-16 15:02:08 +08:00
lingdie cbcc69394d feat. imagehub webhook fix. (#2260)
* fix delete logic error.

* add pass logic for kubernetes-admin.

* debug

* use group to check.

* delete useless const. use init func.
2022-12-16 14:20:02 +08:00
zzjin 48439e60cf Move dir (#2274)
Signed-off-by: zzjin <tczzjin@gmail.com>
2022-12-16 13:42:04 +08:00
cuisongliu 43497b9bfd feature(main): delete warn (#2269)
Signed-off-by: cuisongliu <cuisongliu@qq.com>

Signed-off-by: cuisongliu <cuisongliu@qq.com>
v4.1.4-rc3
2022-12-15 22:19:31 +08:00
cuisongliu e0d1fae107 feature(main): env compatible (#2265)
Signed-off-by: cuisongliu <cuisongliu@qq.com>

# Conflicts:
#	docs/4.0/docs/build-cloud-image/build-directory-structure.md
#	pkg/env/env.go
#	pkg/types/v1beta1/cluster.go
2022-12-15 21:02:18 +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 2c789a0f84 feature(main): fix changelogs (#2251)
Signed-off-by: cuisongliu <cuisongliu@qq.com>

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-12-13 21:42:46 +08:00
lingdie 2d8203cf79 feat. add repo webhook to set default labels and validate it. (#2257)
* add repository webhook.

* add comment

* make to gen codes.

* fix spill error.

* func checkOption refactor.

* fix review.

* add comment.

* add repo webhook test samples.

* pass if sa in system:serviceaccount:imagehub-system.

* fix lint
2022-12-13 17:18:56 +08:00
Meteorite edab8116da feat: add reconcile disks & modify infra_types & add tags (#2248)
Signed-off-by: xiaohan <962479661@qq.com>
2022-12-13 14:35:01 +08:00
fengxsong d1857b0949 debug: more verbose logging for scp (#2254)
Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-13 10:53:20 +08:00
lingdie 60324faaca Enhancement: imagehub webhook get usernamespace by env. (#2253)
* Enhancement: use env to get usernamespace.

* change Dockerfile. default return a const.
2022-12-13 00:32:40 +08:00
lingdie d1c8993a8f use admisswebhook sdk to mutate and validate image create, update, delete. (#2244)
* setup imagemutate webhook.

* setup ImageValidator webhook.

* set webhook.client generate=false

* commplete ImageValidator.Handle func.

* add lable and name check.

* fix hookserver path error.

* use sdk to set up image webhook with manager.

* fix lint. add test samples. debug.

* make to gen codes.

* add logs for debug.

* set sa namespace to user-system. fix test yaml. add log for test. debug.
2022-12-12 22:04:56 +08:00
Mercurio 8e5b12ca56 ci: adjust files to be checksumed (#2250)
Signed-off-by: Mercurio <signormercurio@gmail.com>

Signed-off-by: Mercurio <signormercurio@gmail.com>
v4.1.4-rc2
2022-12-12 17:16:09 +08:00
Mercurio 0c5cc7be43 Pin ubuntu version in Release workflow, use correct goreleaser args for sealctl and add release checksum (#2249)
* ci: pin ubuntu version in Release workflow to 18.04

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

* ci: use correct goreleaser args for sealctl

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

* ci: add release checksum

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

Signed-off-by: Mercurio <signormercurio@gmail.com>
2022-12-12 16:54:39 +08:00
cuisongliu 83571fb148 feature(main): add kubernetes support and changelog (#2242)
* feature(main): add changelog

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

* feature(main): add changelogs

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

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-12-12 15:23:45 +08:00
lingdie cbcfa17511 Fix: image hub delete useless image detail info. (#2243)
* delete useless image detail info.
2022-12-12 11:37:48 +08:00
fengxsong 975627e54a fix: set tls-verify option default to false (#2239)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-11 20:18:57 +08:00
cuisongliu 54996a2cea feature(main): add build-in env docs (#2241)
Signed-off-by: cuisongliu <cuisongliu@qq.com>

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-12-11 19:46:42 +08:00
cuisongliu 09313670ef feature(main): support sys env SEALOS_SYS_KUBE_VERSION,SEALOS_SYS_VERSION_MAJOR,SEALOS_SYS_VERSION_MINOR (#2240)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-12-11 16:43:35 +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
fengxsong b86e484ad6 fix: get the full root command name (#2236)
* fix: get the full root command name

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

* style: ajust instruction files order

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

Signed-off-by: fengxsong <fengxsong@outlook.com>
2022-12-10 22:23:18 +08:00