Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
272 commits
Select commit Hold shift + click to select a range
0491f22
fix: add work-dir volume for job pod.
redscholar May 29, 2024
3fb5997
Merge pull request #2263 from ImitationImmortal/feature
ks-ci-bot May 30, 2024
8f4b843
feat: add plugin: backup and restore etcd.
redscholar May 30, 2024
ea74df0
Merge pull request #2264 from ImitationImmortal/feature
ks-ci-bot May 30, 2024
c81bca3
feat: add cronJob for pipeline.
redscholar Jun 3, 2024
29f42e2
Merge pull request #2270 from ImitationImmortal/feature
ks-ci-bot Jun 4, 2024
9425359
feat: add sonobuoy plugin.
redscholar Jun 6, 2024
4700da3
Merge pull request #2275 from ImitationImmortal/feature
ks-ci-bot Jun 6, 2024
d4335da
feat: add sonobuoy plugin.
redscholar Jun 6, 2024
74cadc0
Merge pull request #2276 from ImitationImmortal/feature
ks-ci-bot Jun 6, 2024
5b501d8
feat: add kubernetes connector
redscholar Jun 7, 2024
24a38f5
Merge pull request #2277 from ImitationImmortal/feature
ks-ci-bot Jun 7, 2024
e6eca60
feat: add pretty log
redscholar Jun 7, 2024
2abcdbd
Merge pull request #2278 from ImitationImmortal/feature
ks-ci-bot Jun 7, 2024
97f4fed
feat: change some description in command line.
redscholar Jun 7, 2024
2a609c1
Merge pull request #2279 from ImitationImmortal/feature
ks-ci-bot Jun 7, 2024
7247c27
feat: add init command.
redscholar Jun 11, 2024
abb1249
Merge pull request #2283 from ImitationImmortal/feature
ks-ci-bot Jun 11, 2024
f48624e
feat: add etcd io precheck.
redscholar Jun 12, 2024
0f5d70e
Merge pull request #2285 from ImitationImmortal/feature
ks-ci-bot Jun 12, 2024
fe588fa
feat: add artifact command.
redscholar Jun 14, 2024
5050efe
Merge pull request #2286 from ImitationImmortal/feature
ks-ci-bot Jun 14, 2024
572584f
feat: change etcd_disk_wal_fysnc_duration_seconds to variable.
redscholar Jun 17, 2024
bd7ef6b
Merge pull request #2287 from ImitationImmortal/feature
ks-ci-bot Jun 17, 2024
2674b92
feat: add cert renew commmand.
redscholar Jun 17, 2024
aa02711
Merge pull request #2288 from ImitationImmortal/feature
ks-ci-bot Jun 17, 2024
f8fe4db
feat: add cert renew commmand.
redscholar Jun 18, 2024
f08cf8e
Merge pull request #2289 from ImitationImmortal/feature
ks-ci-bot Jun 18, 2024
36110a3
fix: format code.
redscholar Jun 19, 2024
12deb23
Merge pull request #2291 from ImitationImmortal/feature
ks-ci-bot Jun 20, 2024
eab066b
feat: add check item for kk precheck command
redscholar Jun 20, 2024
934c731
fix: error unit for cluster_require.etcd_disk_wal_fysnc_duration_seconds
redscholar Jun 21, 2024
2a0c2a5
Merge pull request #2292 from ImitationImmortal/feature
ks-ci-bot Jun 21, 2024
1a4f7d6
fix: add gather_facts interface to connector
redscholar Jun 24, 2024
8956c4c
Merge pull request #2293 from ImitationImmortal/feature
ks-ci-bot Jun 25, 2024
b79cf98
fix: add ignoreErrors to block and playbook
redscholar Jun 25, 2024
ca287cc
Merge pull request #2294 from ImitationImmortal/feature
ks-ci-bot Jun 25, 2024
85dbdbd
doc: add docs
redscholar Jun 27, 2024
7bfdfc8
Merge pull request #2295 from ImitationImmortal/feature
ks-ci-bot Jun 27, 2024
6a821da
doc: add github action
redscholar Jun 28, 2024
dfd9b66
Merge pull request #2299 from ImitationImmortal/feature
ks-ci-bot Jun 28, 2024
3383528
doc: add github action
redscholar Jun 28, 2024
e70863d
fix: golangci-lint
redscholar Jun 28, 2024
5514e64
Merge pull request #2300 from ImitationImmortal/feature
ks-ci-bot Jul 1, 2024
ab02d53
fix: golangci-lint
redscholar Jul 1, 2024
3045cdd
Merge pull request #2301 from ImitationImmortal/feature
redscholar Jul 1, 2024
c14ce0e
fix: golangci-lint
redscholar Jul 1, 2024
ddb25a0
Merge pull request #2302 from ImitationImmortal/feature
redscholar Jul 1, 2024
6e97564
fix: golangci-lint
redscholar Jul 1, 2024
c162ea7
Merge pull request #2303 from ImitationImmortal/feature
redscholar Jul 1, 2024
874a21a
fix: golangci-lint
redscholar Jul 1, 2024
ec8bd8c
fix: golangci-lint
redscholar Jul 1, 2024
2d320c7
fix: add goreleaser
redscholar Jul 1, 2024
8912b05
Merge pull request #2304 from ImitationImmortal/feature
ks-ci-bot Jul 1, 2024
cb138e1
fix: add goreleaser
redscholar Jul 1, 2024
d755dc6
Merge pull request #2305 from ImitationImmortal/feature
redscholar Jul 1, 2024
c8c8d91
fix: change image name
redscholar Jul 1, 2024
400cdfa
Merge pull request #2306 from ImitationImmortal/feature
ks-ci-bot Jul 1, 2024
4540d3a
fix: tag can be inherited
redscholar Jul 2, 2024
98ee686
Merge pull request #2307 from ImitationImmortal/feature
ks-ci-bot Jul 2, 2024
22a63e7
fix: tag can be inherited
redscholar Jul 2, 2024
1285dbb
Merge pull request #2308 from ImitationImmortal/feature
ks-ci-bot Jul 2, 2024
d1894b1
feat: add vendor
redscholar Jul 3, 2024
aa3312c
Merge pull request #2309 from ImitationImmortal/feature
ks-ci-bot Jul 3, 2024
c09106c
feat: add localhost cluster. it will use default kubeconfig(.kube/con…
redscholar Jul 12, 2024
0a183cc
Merge pull request #2317 from ImitationImmortal/feature
ks-ci-bot Jul 12, 2024
63bd058
feat: set base default dir for kubernetes connector.
redscholar Jul 15, 2024
215e58d
Merge pull request #2318 from ImitationImmortal/feature
ks-ci-bot Jul 15, 2024
34a0704
bug: defaultConfig is not render.
redscholar Jul 15, 2024
143fd32
Merge pull request #2319 from ImitationImmortal/feature
ks-ci-bot Jul 15, 2024
b6c7ea2
fix: var_files defined error (#2320)
redscholar Jul 15, 2024
de9a34f
fix: join control-plane error (#2321)
redscholar Jul 16, 2024
9a98a8f
add ssh private key connector method (#2322)
redscholar Jul 17, 2024
3329000
fix: coredns configmap is not correct. (#2323)
redscholar Jul 18, 2024
1aeabd8
feat: add param to ip_range. (#2325)
redscholar Jul 18, 2024
8cba264
fix: unescape --set string. (#2327)
redscholar Jul 23, 2024
3b361c9
fix: misspelling (#2334)
redscholar Jul 25, 2024
4919e63
feature: use go template instance pongo2 template (#2340)
redscholar Aug 5, 2024
526e234
fix: inventory_name is localhost, install failed (#2344)
redscholar Aug 5, 2024
91a1cf5
feat: delete unuse function. (#2345)
redscholar Aug 6, 2024
eb1b653
feat: modify addons/* setup hosts (#2346)
dbbDylan Aug 6, 2024
4a060a9
fix: etc/hosts not correct when localhost is not belong cluster. (#2349)
redscholar Aug 7, 2024
1aa519d
feat: --set contains multi string "=". (#2351)
redscholar Aug 9, 2024
647ae22
fix: set default work_dir is "./kubekey". (#2354)
redscholar Aug 12, 2024
718de31
change package name (#2355)
redscholar Aug 12, 2024
865913f
feat: add more golangci lint rule. (#2366)
redscholar Aug 21, 2024
9ee6298
Fix k8s cni binary template bug (#2368)
dbbDylan Aug 21, 2024
6fc9618
feat: support run workflow without vendor. (#2369)
redscholar Aug 21, 2024
1504786
feat: sync vendor when go.mod changed. (#2372)
redscholar Aug 23, 2024
658023c
fix: error local router. (#2388)
redscholar Sep 4, 2024
7eba91a
fix: Change offline package directory. (#2392)
redscholar Sep 5, 2024
48831c7
fix: graceful delete runtime dir. (#2393)
redscholar Sep 6, 2024
d2ea25d
fix: image pull failed (#2394)
liangzai006 Sep 6, 2024
e22d6f6
fix: artifact package exclude `certs` (#2396)
redscholar Sep 9, 2024
d1026e1
add `sudo` and SHELL in connector (#2398)
redscholar Sep 11, 2024
289a6b0
add `sudo_password` to use sudo mod. (#2402)
redscholar Sep 11, 2024
92dd64f
only use sudo mode to execute command (#2405)
redscholar Sep 12, 2024
e4957a6
fix: ssh formatting exception bug when executing commands (#2406)
dbbDylan Sep 18, 2024
4261580
fix: symbolic bug in GatherFacts function (#2411)
dbbDylan Sep 20, 2024
fc6c8b5
bug fix (#2414)
dbbDylan Sep 25, 2024
2ff308d
feat: add capkk CRDs (#2409)
dbbDylan Oct 10, 2024
44c9153
feat: update kkcore CRDs (#2410)
dbbDylan Oct 10, 2024
3cbabc5
Update kkcore crds (#2425)
dbbDylan Oct 10, 2024
87deeac
feat: add pipelinetemplate spec for kkcluster (#2426)
dbbDylan Oct 10, 2024
b10dc00
fix: bug fix (#2427)
dbbDylan Oct 10, 2024
a083447
Feature capkk controller (#2419)
dbbDylan Oct 29, 2024
bb6f0c6
feat: add and update playbooks (#2418)
dbbDylan Oct 29, 2024
82cc8fd
Update sync-vendor.yml
redscholar Nov 1, 2024
6fdb8c2
parent 82cc8fd489834c6dc2b7f5463cfe2a3629c7846a
redscholar Nov 4, 2024
4f4b733
Add vendor directory (#2450)
github-actions[bot] Nov 4, 2024
b79482a
refactor: move env to _const. (#2455)
redscholar Nov 13, 2024
3e56b09
fix: test kk push image to harbor. (#2457)
redscholar Nov 19, 2024
86ff637
Uninstall docker interface (#2478)
redscholar Mar 5, 2025
6cdcdd3
feat: add unit test for variable (#2502)
redscholar Mar 7, 2025
93addfb
feat: Adding generic methods to template parsing (#2503)
redscholar Mar 10, 2025
b27426a
fix: error parse when (#2505)
redscholar Mar 12, 2025
ccca0ed
fix: ssh command no need to escape (#2507)
redscholar Mar 18, 2025
e40c57f
fix: change pipeline to playbook (#2512)
redscholar Mar 24, 2025
e5b4505
feat: change default criSocket to docker (#2517)
redscholar Mar 28, 2025
3444878
feat: use unstructured to get or set value for config (#2519)
redscholar Mar 31, 2025
954579b
fix: Remove the error stack from the intermediate layer. (#2521)
redscholar Apr 1, 2025
2c19021
feat: more type to defined playbook file (#2522)
redscholar Apr 3, 2025
6612e69
feat: add create config command (#2527)
redscholar Apr 10, 2025
7560b29
feat: add delete cluster command (#2528)
redscholar Apr 11, 2025
def153b
feat: Thread-safe reading and writing (#2531)
redscholar Apr 16, 2025
ea4a19e
feat: add register_type (#2532)
redscholar Apr 16, 2025
61d0bb2
feat: add more ignore_errors when kk delete (#2533)
redscholar Apr 16, 2025
25f3de2
feat: Installation refinement steps (#2536)
redscholar Apr 17, 2025
2dead13
feat: add deleteDNS parameter in delete_cluster (#2537)
redscholar Apr 17, 2025
dc87174
feat: Silence logs (#2538)
redscholar Apr 18, 2025
9502ac5
feat: Parse YAML parameters sequentially. (#2555)
redscholar May 7, 2025
1dbc59c
feat: delete /var/log/pods/ (#2556)
redscholar May 7, 2025
a876b3c
feat: add command add node (#2557)
redscholar May 8, 2025
13df73e
feat: add gather_facts cache (#2558)
redscholar May 12, 2025
9a672ad
feat: Support for auto-detecting nodes to add. (#2560)
redscholar May 12, 2025
fb474bd
feat: change builtin defined variable (#2561)
redscholar May 13, 2025
eeb4237
feat: More detailed init-os rules (#2563)
redscholar May 13, 2025
e97e538
feat: add delete nodes command (#2565)
redscholar May 14, 2025
093dfe1
feat: Configurable local DNS file (#2567)
redscholar May 14, 2025
9baaf9c
fix: support [a].[b] in set argument (#2569)
redscholar May 15, 2025
dce1e71
fix: configurable sandbox image (#2571)
redscholar May 16, 2025
efbe735
fix: change kubernetes download url (#2572)
redscholar May 16, 2025
fa2e0f4
support prometheus tasks (#2573)
pixiake May 16, 2025
80c9a73
feat: delete --container-manager (#2577)
redscholar May 19, 2025
6aec54a
feat: add kubernetes v1.31.2 (#2578)
redscholar May 20, 2025
ecfb0fe
fix: Unexpected error during initial resource listing (#2579)
redscholar May 20, 2025
934f393
fix: error cri_socket (#2584)
redscholar May 22, 2025
4c9256c
feat: add ssh auth private_key_content (#2585)
redscholar May 22, 2025
d979c92
fix: change failed_when execute time (#2586)
redscholar May 22, 2025
de5cc69
doc: Add details to the module comments. (#2587)
redscholar May 23, 2025
202700f
feat: run gather_facts by module (#2588)
redscholar May 23, 2025
8c84ea7
doc: defined env by struct (#2589)
redscholar May 23, 2025
9c87926
feat: add web api (#2591)
redscholar May 26, 2025
38944a5
feat: add schema service (#2593)
redscholar May 27, 2025
ff50e14
feat: add annotations to node (#2594)
redscholar May 27, 2025
71265ad
fix: add Delete arp by kube-vip when uninstall/kubernetes (#2596)
redscholar May 28, 2025
38b8d04
fix: Kube_vip may fail when used with Kubernetes versions above v1.29…
redscholar May 28, 2025
cec2e1a
fix: delete ip addr bind for kube_vip (#2598)
redscholar May 28, 2025
6e0cdbe
fix: display task progressbar in file. (#2599)
redscholar May 29, 2025
9ec3aa7
fix: preserve the template formatting. (#2602)
redscholar Jun 5, 2025
72680b8
feat: more fast execute task (#2603)
redscholar Jun 5, 2025
878b69a
feat: add resources tags api (#2604)
redscholar Jun 5, 2025
00f4b8c
feat: store src domain in local dir (#2606)
redscholar Jun 9, 2025
c7a42e5
fix: Modify the node parsing order. (#2607)
redscholar Jun 11, 2025
cfb83de
fix: Only set the kube_version if it is not already defined in the co…
redscholar Jun 11, 2025
e43cf2a
fix: use empty func in template syntax (#2610)
redscholar Jun 11, 2025
e109fbb
fix: Offline install (#2611)
redscholar Jun 11, 2025
1d99686
fix: error resources path (#2614)
redscholar Jun 12, 2025
fc0e991
fix: restart cri after clear iptables (#2616)
redscholar Jun 12, 2025
982539c
feat: add more default kubernetes version (#2618)
redscholar Jun 17, 2025
2cb9d8d
fix: more deep clear (#2622)
redscholar Jun 17, 2025
e3f2372
feat: docs for modules (#2623)
redscholar Jun 17, 2025
03c6ce1
docs: builtin docs (#2626)
redscholar Jun 18, 2025
b629ec5
feat: add module add_hostvars (#2629)
redscholar Jun 20, 2025
e530832
fix: Eliminate duplicate parse logic. (#2631)
redscholar Jun 20, 2025
9ade693
fix: clear default inventory and configuration logic. (#2632)
redscholar Jun 23, 2025
8593c18
cleanup: move the binary_type fact setting to the pre_install hook (#…
redscholar Jun 23, 2025
a306bd6
feat: add delete image_registry (#2634)
redscholar Jun 23, 2025
2acae88
fix: rename image_registry to registry (#2635)
redscholar Jun 24, 2025
9b36d38
fix: reset failed after delete service (#2636)
redscholar Jun 24, 2025
9686e04
fix: change custom function ipInCIDR (#2639)
redscholar Jun 26, 2025
8237a2f
feat: install image_registry (#2640)
redscholar Jun 26, 2025
794d28c
fix: delete debug field (#2642)
redscholar Jun 27, 2025
bbb8a4a
add result module (#2646)
redscholar Jun 30, 2025
e3dec87
feat: add more web interface (#2648)
redscholar Jul 3, 2025
c71814a
fix: add index to groups (#2649)
redscholar Jul 7, 2025
96d6bc7
feat: more expiration for ca file (#2650)
redscholar Jul 7, 2025
bca5b96
feat: add local dns for image_registry.auth.registry (#2651)
redscholar Jul 8, 2025
e5077f5
feat: add role dependency at meta (#2652)
redscholar Jul 9, 2025
b68c73d
feat: add role dependency in builtin playbook (#2653)
redscholar Jul 9, 2025
39657b3
fix: playbook delete is error (#2654)
redscholar Jul 10, 2025
2e6bad6
fix: add sshPort of listIP result (#2656)
redscholar Jul 14, 2025
d2e8e36
fix: install os package but not upgrade it (#2658)
redscholar Jul 15, 2025
873e4dd
fix: error update playbook (#2660)
redscholar Jul 18, 2025
98b688b
feat: add delegate_to (#2662)
redscholar Jul 18, 2025
71c1b2e
feat: rescue success continue execute playbook (#2664)
redscholar Jul 21, 2025
86c9912
feat: make the nodelocaldns bind IP configurable. (#2665)
redscholar Jul 21, 2025
2b8ea3e
feat: test variable store in memory (#2666)
redscholar Jul 23, 2025
6b9636d
feat: enhance schema handling with playbook results (#2667)
redscholar Jul 23, 2025
5ff30bf
feat: add webUI route (#2668)
redscholar Jul 23, 2025
7b61daf
fix: add ui-path for kk web (#2670)
redscholar Jul 25, 2025
7b84f4a
feat: add result of POST /resources/schema/config (#2671)
redscholar Jul 25, 2025
620b7f5
feat: enhance connector interface and implementations (#2675)
redscholar Jul 30, 2025
348c9b2
feat: enhance precheck tasks for image registry and network validatio…
redscholar Aug 4, 2025
6ec7057
bugfix: update add user command ,check wheather user exist or not ,on…
zuoxuesong-worker Aug 6, 2025
48b7c3b
feat: check inventory when it's changed (#2691)
redscholar Aug 7, 2025
0f40e29
fix: more clear error (#2694)
redscholar Aug 12, 2025
4c72031
fix: Make the /schema/config POST endpoint more robust. (#2699)
redscholar Aug 14, 2025
a6c14af
feature: add pull image platform (#2705)
zuoxuesong-worker Aug 15, 2025
8138d1e
fix: Strengthen nodelocaldns (#2702)
redscholar Aug 18, 2025
b49cfc7
Update OWNERS
redscholar Aug 19, 2025
68f3ee1
feature: support defaults main dir (#2709)
zuoxuesong-worker Aug 19, 2025
aaae2f6
feature: support same key in different file (#2714)
zuoxuesong-worker Aug 20, 2025
a8e533e
feature: support task include vars (#2717)
zuoxuesong-worker Aug 22, 2025
3885b44
fix: change builtin/core architectures (#2718)
redscholar Aug 22, 2025
2a4f516
fix: error format for kubernetes version file (#2723)
redscholar Aug 25, 2025
cf754e0
Update delete_cluster.yaml
redscholar Aug 25, 2025
ba98704
Update resources.go
redscholar Aug 25, 2025
9711164
feature: abandan file cycle import (#2721)
zuoxuesong-worker Aug 25, 2025
4013fef
Update build-multiarch.yaml
redscholar Aug 25, 2025
79fa0a4
bugfix: fix builtin package empty graph bug (#2726)
zuoxuesong-worker Aug 26, 2025
d62e569
fix: add kubernetes version from config (#2724)
redscholar Aug 26, 2025
3fa58f4
bugfix: fix harbor verson config path (#2727)
zuoxuesong-worker Aug 26, 2025
24c8063
feat: change k8s image tags and artifact func (#2729)
zuoxuesong-worker Aug 27, 2025
c12ddbd
feat: move web const to web api (#2737)
zuoxuesong-worker Aug 29, 2025
516bd99
bugfix:change k8s default config image tags (#2736)
zuoxuesong-worker Aug 29, 2025
363fa28
bugfix: change k8s default config image tags (#2741)
zuoxuesong-worker Sep 2, 2025
13c9e46
feat: change artiface image host list (#2743)
zuoxuesong-worker Sep 2, 2025
a07bf6d
fix: use english task name (#2745)
redscholar Sep 5, 2025
a4d46c3
bugfix : fix issue 6795 (#2749)
zuoxuesong-worker Sep 5, 2025
602afff
bugfix : change openebs version from 4.3 to 4.2 (#2751)
zuoxuesong-worker Sep 8, 2025
3d1461f
bugfix : fix issue 6796 (#2752)
zuoxuesong-worker Sep 8, 2025
b0a1d22
bugfix : fix issue 6764 (#2748)
zuoxuesong-worker Sep 8, 2025
0b7d62d
bugfix : fix a bug, openebs can not use leases (#2753)
zuoxuesong-worker Sep 8, 2025
32aba62
bugfix : fix secure path set in centos (#2757)
zuoxuesong-worker Sep 10, 2025
a86f7fc
bugfix : fix --with-kubernetes not affect (#2759)
zuoxuesong-worker Sep 11, 2025
64d4340
feat: add iso workflow (#2765)
redscholar Sep 15, 2025
f3c66de
fix: add ubuntu 2404 (#2766)
redscholar Sep 15, 2025
6f0437e
fix: add condition to check download_image in playbooks and tasks (#2…
redscholar Sep 18, 2025
e3eba1a
feat : change iso installer (#2768)
zuoxuesong-worker Sep 18, 2025
6e4fc99
bugfix: fix some system id error (#2770)
zuoxuesong-worker Sep 18, 2025
54e819d
feat : add issue 6787 (#2764)
zuoxuesong-worker Sep 19, 2025
9b1bd9f
bugfix: fix ssh check with wrong local key check (#2772)
zuoxuesong-worker Sep 22, 2025
3517ad8
feat: add None in gen_cert.policy (#2773)
redscholar Sep 22, 2025
3c61250
fix: backup not support in apiV3 (#2777)
redscholar Sep 26, 2025
2ee14ff
feat: change download data config in some playbooks (#2778)
zuoxuesong-worker Sep 26, 2025
ea70663
feat: add validation for unique host variables in inventory (#2779)
redscholar Sep 28, 2025
c66b9d0
feat: change image pull auth args (#2780)
zuoxuesong-worker Sep 29, 2025
f12dc62
feat: change some image tags (#2781)
zuoxuesong-worker Sep 29, 2025
5f10564
build(deps): bump actions/checkout from 3 to 5
dependabot[bot] Sep 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
768 changes: 0 additions & 768 deletions .all-contributorsrc

This file was deleted.

35 changes: 35 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Binaries for programs and plugins
*.exe
*.dll
*.so
*.dylib
*.tmp
.DS_Store

# Test binary, build with `go test -c`
*.test

# IntelliJ
.idea/
*.iml

# Vscode files
.vscode

# rbac and manager config for example provider
manager_image_patch.yaml-e
manager_pull_policy.yaml-e

# Sample config files auto-generated by kubebuilder
config/samples

# test results
_artifacts

# Used during parts of the build process. Files _should_ get cleaned up automatically.
# This is also a good location for any temporary manfiests used during development
tmp

# Used by current object
/_output/
dist/
5 changes: 2 additions & 3 deletions .github/OWNERS
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
approvers:
- pixiake
- Forest-L
- rayzhou2017
- LinuxSuRen
- ImitationImmortal

reviewers:
- pixiake
- Forest-L
- rayzhou2017
- zryfish
- shaowenchen
- benjaminhuo
- calvinyv
- FeynmanZhou
- huanggze
- wansir
- LinuxSuRen
- ImitationImmortal
File renamed without changes.
42 changes: 27 additions & 15 deletions .github/workflows/build-multiarch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,48 @@ name: BuildContainerImage
on:
push:
tags:
- 'v3*'
- 'v4*'

jobs:
build:
name: Build
runs-on: ubuntu-latest
if: github.repository == 'kubesphere/kubekey'
env:
GO111MODULE: on
steps:
- name: Set env
run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: Prepare
id: prepare
run: |
VERSION=latest

if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
fi
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"

- name: Checkout code
uses: actions/checkout@v5

- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Login to DOCKER
uses: docker/login-action@v3
with:
fetch-depth: 0
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Set up Docker buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Build and push docker images
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
if: github.event_name == 'push'
- name: Build and push Docker images
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
make release-prod
tag=${{ steps.prepare.outputs.version }}
if [[ $tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
REGISTRY=docker.io/kubesphere TAG=$tag make docker-push
else
REGISTRY=docker.io/kubespheredev TAG=$tag make docker-push
fi
47 changes: 0 additions & 47 deletions .github/workflows/ci.yml

This file was deleted.

24 changes: 11 additions & 13 deletions .github/workflows/gen-repository-iso.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: gen-repository-iso
name: GenRepositoryISO
on:
push:
tags:
- 'v*'
- 'ISO-*'
workflow_dispatch:

jobs:
Expand All @@ -14,16 +14,14 @@ jobs:
fail-fast: false
matrix:
include:
- name: centos7-rpms
dockerfile: dockerfile.centos7
- name: almalinux-9.0-rpms
dockerfile: dockerfile.almalinux90
- name: debian10-debs
dockerfile: dockerfile.debian10
- name: debian11-debs
dockerfile: dockerfile.debian11
- name: ubuntu-16.04-debs
dockerfile: dockerfile.ubuntu1604
- name: debian12-debs
dockerfile: dockerfile.debian12
- name: ubuntu-18.04-debs
dockerfile: dockerfile.ubuntu1804
- name: ubuntu-20.04-debs
Expand All @@ -32,16 +30,16 @@ jobs:
dockerfile: dockerfile.ubuntu2204
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v5

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Build iso image to local
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: hack/gen-repository-iso
file: hack/gen-repository-iso/${{ matrix.dockerfile }}
Expand All @@ -56,7 +54,7 @@ jobs:
sha256sum *.iso > ${{ matrix.name }}.iso.sha256sum.txt

- name: Wait for release workflow to finish
uses: lewagon/wait-on-check-action@v1.3.1
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.ref }}
check-name: 'create draft release'
Expand All @@ -66,12 +64,12 @@ jobs:

- name: Release and upload packages
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
files: |
${{ matrix.name }}.iso.sha256sum.txt
${{ matrix.name }}-amd64.iso
${{ matrix.name }}-arm64.iso
${{ matrix.name }}-arm64.iso
81 changes: 81 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: GolangCILint

on:
pull_request:
types: [opened, edited, synchronize, reopened]
paths:
- 'pkg/**'
- 'cmd/**'
- 'version/**'
- 'go.mod'
- 'go.sum'
- 'api/**'

# Remove all permissions from GITHUB_TOKEN except metadata.
permissions: {}

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
if: github.repository == 'kubesphere/kubekey'
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Setup golang
uses: actions/setup-go@v5
with:
go-version: 1.23.3

- name: Sync mod
run: make generate-modules

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.63.3

verify:
name: verify
runs-on: ubuntu-latest
if: github.repository == 'kubesphere/kubekey'
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Setup golang
uses: actions/setup-go@v5
with:
go-version: 1.23.3

- name: Sync mod
run: make generate-modules

- name: Verify
run: ALL_VERIFY_CHECKS="goimports releaser" make verify

test:
name: test
runs-on: ubuntu-latest
if: github.repository == 'kubesphere/kubekey'
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Setup golang
uses: actions/setup-go@v5
with:
go-version: 1.23.3

- name: Sync mod
run: make generate-modules

- name: Test
run: make test
28 changes: 0 additions & 28 deletions .github/workflows/golangci-lint.yml

This file was deleted.

Loading