Commit Graph
369 Commits
Author SHA1 Message Date
fengxsong 5f90031add feat: apply feature #2405 on sealos inspect command (#2416)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2023-01-17 09:22:19 +08:00
fengxsong 6421382df9 fix: inspect image in gen command (#2411)
Signed-off-by: fengxsong <fengxsong@outlook.com>
2023-01-15 17:02:10 +08:00
cuisongliu bf79f1f808 refactor: rename apply pkg (#2397) (#2367)
# Conflicts:
#	pkg/apply/processor/interface.go
2023-01-14 21:39:57 +08:00
fengxsong 2408942a2d fix: export function FormatReferenceWithTransportName (#2408)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2023-01-14 15:49:41 +08:00
fengxsong ced6a1d1da feat: refactor buildah's inspect method so we can inspect different types of image (#2405)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2023-01-14 11:19:15 +08:00
Meteorite e66dc73868 fix: modify delete logic to support cloud provider (#2402) 2023-01-13 23:26:37 +08:00
cuisongliu fe1a6a261c refactor: autoLoad apiServer ip and port (#2401) 2023-01-13 21:35:49 +08:00
zhihui 430fcb6f0d bugfix: add node failure (#2395)
modify
2023-01-13 13:52:17 +08:00
cuisongliu a74f8473d0 refactor: rename apply pkg (#2397) 2023-01-13 11:45:09 +08:00
cuisongliu 5bb7fd38d7 feature(main): fix cert for init masters (#2383)
close #2370

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

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2023-01-13 10:17:48 +08:00
zhihui 4c7fefefdb bugfix: sealos run error (#2382)
* bugfix

bugfix

bugfix

* improve 'sealos run'
2023-01-12 12:53:44 +08:00
zhihui 3b9727cd78 bugfix: 'sealos run' can scale cluster (#2366) 2023-01-11 18:08:56 +08:00
zzjin 1ca0370b8b Fix ci semgrep (#2374)
Signed-off-by: zzjin <tczzjin@gmail.com>

Signed-off-by: zzjin <tczzjin@gmail.com>
2023-01-10 23:41:50 +08:00
Meteorite afb61e4b6b add ssh-privatekey secret to prevent ssh problems (#2371) 2023-01-10 18:25:23 +08:00
fengxsong 5ea9334fc6 refactor: implement exponential backoff retry for ssh connect (#2358)
Signed-off-by: fengxsong <fengxsong@outlook.com>

Signed-off-by: fengxsong <fengxsong@outlook.com>
2023-01-09 22:21:40 +08:00
zhihui b30019c194 Feature: upgrade the cluster (#2340)
* Feature: upgrade the cluster

delete 'TTLAfterFinished=true',the TTLAtferFinished wouldn't be recognized after kubeadm:v1.25

upgrade k8s implementation

Signed-off-by: mond77 <1208119827@qq.com>

retry uncordon node every five seconds

add license

delele unused args

* same result if upgrade multiple times or retry after failure

modify license

* improve upgrade process and support upgrade to v1.25

Signed-off-by: mond77 <1208119827@qq.com>

* add the upgrade limit of minor version

* add func pingApiServer

* add func tryUncordonNode

improve uncordon cmd

* docs: how to upgrade cluster
2023-01-09 20:52:10 +08:00
cdjianghan 5da777b3ca better parse image size
use user kubeconfig to apply image cr
2023-01-04 17:20:18 +08:00
cdjianghan f0c96236ad add some comment
write ReadOrBuildImageCRFile better
2023-01-04 16:51:33 +08:00
cdjianghan a0d1ab742c change some func name to better understand
add Success and Faild output
2023-01-04 16:51:33 +08:00
cdjianghan fc09bc9f61 use config.GetAllCredentials to place CheckLoginStatus in imagecrdbuilder 2023-01-04 16:51:33 +08:00
cdjianghan e257b1d7e0 add some imgeCrdBuilder change
add CheckLoginStatus() to check wheather push image should appen
ReadOrBuildAppConfig() add logic when user didn't write any image config
add Image base info read such as image size image arch ...
delete action content read now
sealos push args is allow to be one or two ,when one ,this arg is both dst and src.when args has two , the secend is dest.
2023-01-04 16:51:33 +08:00
cdjianghan fd336f9e2c add imageCrdBuilder
split some function to make the logic clear
fit new buildah implement
add image id arch and size read
2023-01-04 16:51:33 +08:00
cuisongliu 0ea4623b82 feature(main): add cert for old version (#2333)
Signed-off-by: cuisongliu <cuisongliu@qq.com>

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2023-01-03 23:50:01 +08:00
cdjianghan 38c40221c4 imagecrbuilder better code (#2334)
* add imageCrdBuilder
split some function to make the logic clear
fit new buildah implement
add image id arch and size read

* add some imgeCrdBuilder change
add CheckLoginStatus() to check wheather push image should appen
ReadOrBuildAppConfig() add logic when user didn't write any image config
add Image base info read such as image size image arch ...
delete action content read now
sealos push args is allow to be one or two ,when one ,this arg is both dst and src.when args has two , the secend is dest.

* use config.GetAllCredentials to place CheckLoginStatus in imagecrdbuilder

* change some func name to better understand
add Success and Faild output

* add some comment
write ReadOrBuildImageCRFile better
2023-01-03 23:33:42 +08:00
cuisongliu 3b626a0727 feature(main): fix registry find manifest logic (#2314)
* feature(main): fix registry find manifest logic

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2023-01-03 23:14:06 +08:00
cdjianghan 506ccc32ef change some func name to better understand add Success and Faild output (#2332)
* add imageCrdBuilder
split some function to make the logic clear
fit new buildah implement
add image id arch and size read

* add some imgeCrdBuilder change
add CheckLoginStatus() to check wheather push image should appen
ReadOrBuildAppConfig() add logic when user didn't write any image config
add Image base info read such as image size image arch ...
delete action content read now
sealos push args is allow to be one or two ,when one ,this arg is both dst and src.when args has two , the secend is dest.

* use config.GetAllCredentials to place CheckLoginStatus in imagecrdbuilder

* change some func name to better understand
add Success and Faild output
2023-01-03 21:57:32 +08:00
cdjianghan 1ff0569628 better code : use config.GetAllCredentials func to place CheckLoginStatus func in imagecrdbuilder (#2328)
use config.GetAllCredentials func to place CheckLoginStatus func in imagecrdbuilder
2023-01-03 11:55:50 +08:00
cdjianghan 3c035238a7 add ImageCRDBuilder implement (#2311)
* add imageCrdBuilder
split some function to make the logic clear
fit new buildah implement
add image id arch and size read

* add some imgeCrdBuilder change
add CheckLoginStatus() to check wheather push image should appen
ReadOrBuildAppConfig() add logic when user didn't write any image config
add Image base info read such as image size image arch ...
delete action content read now
sealos push args is allow to be one or two ,when one ,this arg is both dst and src.when args has two , the secend is dest.
2023-01-01 22:01:10 +08:00
cuisongliu 2ceb0629dd feature(main): fix ci error (#2326)
close #2305

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2023-01-01 16:37:21 +08:00
cuisongliu 60e58c9c8c feature(main): fix etcd config (#2323)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2022-12-31 11:59:24 +08:00
晓杰 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