晓杰
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
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
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
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
晓杰
7691deabf2
fix:payment add defaultcallbackURL ( #2300 )
...
Signed-off-by: 晓杰 <2561589453@qq.com >
2022-12-26 10:15:08 +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
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
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
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
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
cuisongliu
43497b9bfd
feature(main): delete warn ( #2269 )
...
Signed-off-by: cuisongliu <cuisongliu@qq.com >
Signed-off-by: cuisongliu <cuisongliu@qq.com >
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
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
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
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
fengxsong
b2c277d244
fix : #2232 force override when the prompted answer is yes ( #2237 )
...
Signed-off-by: fengxsong <fengxsong@outlook.com >
Signed-off-by: fengxsong <fengxsong@outlook.com >
2022-12-10 22:13:04 +08:00
cuisongliu
bd3357eb1f
feature(main): add delete build file scan ( #2229 )
...
Signed-off-by: cuisongliu <cuisongliu@qq.com >
Signed-off-by: cuisongliu <cuisongliu@qq.com >
2022-12-10 17:33:47 +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
806ebf6b7c
fix: only run guest command for app type cloudimage ( #2218 )
...
Signed-off-by: fengxsong <fengxsong@outlook.com >
2022-12-08 12:53:11 +08:00
cuisongliu
d233fbd044
feature(main): Support configuration file custom vip ( #2115 )
...
Signed-off-by: cuisongliu <cuisongliu@qq.com >
2022-12-08 12:07:55 +08:00
lingdie
b0375a295a
feat. sealos registry hub.sealos.io auth server. ( #2177 )
...
* feat. sealos registry hub.sealos.io auth server.
add deploy.yaml
* fix review.
* sync code.
* add comment
* delete server tls.
* delete useless func.
* fix lint.
* change healthz to readyz.
* creat one replica in deployment.
* fix review.
* fix review.
* replace host, reuse client.
* edit main
* fix lint.
* fix review.
2022-12-07 18:55:47 +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
lingdie
3f152645b6
feat. sealos login hub.sealos.io by kubeconfig. ( #2176 )
...
* feat. sealos login hub.sealos.io via kubeconfig.
* Delete useless const var.
Change config path to $(HOME)/.sealos/$(args[0]).HOST/$(user)/config
* fix registry host parse.
* solve review problem.
* move file options to postrun.
* use parseRawURL.
* fix review, add comment.
2022-12-07 15:47:21 +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
清风
7fea853d79
fix: Clusterfile must has right sort of hosts, host[0] must be master role ( #2191 )
...
BUG: Clusterfile must has right sort of hosts, host[0] must be master role #2157
2022-12-06 13:39:09 +08:00
fengxsong
9b945fb372
fix: adjust sealos reset process order ( #2190 )
...
Signed-off-by: fengxsong <fengxsong@outlook.com >
Signed-off-by: fengxsong <fengxsong@outlook.com >
2022-12-06 11:46:31 +08:00
fengxsong
a878eba279
feat: add back create subcommand and support manually unshare ( #2187 )
...
* feat: add back create subcommand and support manually unshare
Signed-off-by: fengxsong <fengxsong@outlook.com >
* fix: ci
Signed-off-by: fengxsong <fengxsong@outlook.com >
Signed-off-by: fengxsong <fengxsong@outlook.com >
2022-12-05 19:19:34 +08:00
fengxsong
b12400c3fe
Refactor ssh copy ( #2186 )
2022-12-05 15:49:41 +08:00
fengxsong
7f2d1548b2
fix: register override function to set kubelet.ResolverConfig to nil ( #2180 )
...
Signed-off-by: fengxsong <fengxsong@outlook.com >
Signed-off-by: fengxsong <fengxsong@outlook.com >
2022-12-05 01:39:58 +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
中弈
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
8c7752da47
fix typo ( #2113 )
...
Signed-off-by: fengxsong <fengxsong@outlook.com >
2022-11-17 13:23:16 +08:00
fengxsong
626211a1ba
fix: copy registry to the correct path ( #2087 )
...
Signed-off-by: fengxsong <fengxsong@outlook.com >
Signed-off-by: fengxsong <fengxsong@outlook.com >
2022-11-12 00:03:47 +08:00
zzjin
8df8294231
Support ingress static cache ( #2072 )
...
Signed-off-by: zzjin <tczzjin@gmail.com >
Signed-off-by: zzjin <tczzjin@gmail.com >
2022-11-10 12:17:46 +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
fengxsong
d57bdf10f2
fix: misuse of *cluster pointer ( #2057 )
2022-11-06 22:59:18 +08:00
Bingchang Chen
3d21d76118
fix: remove dependency to casdoor ( #2033 )
2022-11-06 21:00:42 +08:00
cuisongliu
8cfc037090
feature(main): fix guest func for exec shell ( #2054 )
...
Signed-off-by: cuisongliu <cuisongliu@qq.com >
2022-11-06 18:27:19 +08:00
中弈
65ecfe710a
fixed sealos run manifests conflict ( #2048 )
...
Signed-off-by: fanux <fanux@sealos.io >
Signed-off-by: fanux <fanux@sealos.io >
2022-11-06 15:41:17 +08:00