William Wang
992a2259df
fix: failed to create local dir x permission denied ( #2880 )
...
* fix: failed to copy absolute file: failed to create local dir x permission denied
Signed-off-by: William Wang <williamw0825@gmail.com>
* docs: make log msg more accurate
Signed-off-by: William Wang <williamw0825@gmail.com>
* feat: ensure mode of dir when using src as dir in copy module
Signed-off-by: William Wang <williamw0825@gmail.com>
* refactor: change func name to ensureDestDirMode
Signed-off-by: William Wang <williamw0825@gmail.com>
* fix: pass go lint
Signed-off-by: William Wang <williamw0825@gmail.com>
---------
Signed-off-by: William Wang <williamw0825@gmail.com>
2025-12-09 17:39:18 +08:00
zuoxuesong-worker
54e819d867
feat : add issue 6787 ( #2764 )
...
feat : add issue 6787
feat : add issue 6787
feat : add issue 6787
feat : add issue 6787
feat : feat issue 6787
feat: add issue 6787
Signed-off-by: xuesongzuo@yunify.com <xuesongzuo@yunify.com>
2025-09-19 09:43:52 +08:00
zuoxuesong-worker
c12ddbd092
feat: move web const to web api ( #2737 )
...
Signed-off-by: xuesongzuo@yunify.com <xuesongzuo@yunify.com>
2025-08-29 11:35:21 +08:00
zuoxuesong-worker
a8e533e608
feature: support task include vars ( #2717 )
...
feature: support task include vars
feature: support task include vars
feature: support task include vars
feature: support task include vars
feature: support task include vars
feature: support task include vars
feature: support task include vars
feature: support task include vars
feature: support task include vars
feature: support task include vars
feature: support task include vars
feature: support task include vars
Signed-off-by: xuesongzuo@yunify.com <xuesongzuo@yunify.com>
2025-08-22 01:25:53 +00:00
liujian
348c9b2d15
feat: enhance precheck tasks for image registry and network validation ( #2676 )
...
* feat: enhance precheck tasks for image registry and network validation
- Added a task to ensure successful authentication to the image registry.
- Updated existing tasks to provide clearer failure messages for required configurations.
- Improved validation for network interfaces and CIDR configurations, ensuring dual-stack support.
- Enhanced error handling in the resource handler for playbook creation.
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: enhance configuration and query handling
- Added `-trimpath` flag to Go build configuration for improved binary paths.
- Updated REST configuration to set QPS and Burst limits for better performance.
- Refactored query handling to use string types for field and value, improving type consistency.
- Enhanced error handling in resource configuration updates and improved parsing of request bodies.
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: check inventory when it's changed
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: enhance playbook execution and query handling
- Added a new optional query parameter `promise` to the playbook and inventory endpoints, allowing for asynchronous execution control.
- Introduced a new result state `ResultPending` to indicate ongoing operations.
- Refactored the executor function to handle the `promise` parameter, enabling conditional execution of playbooks.
- Improved error handling and logging during playbook execution.
Signed-off-by: joyceliu <joyceliu@yunify.com>
---------
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-08-04 15:27:22 +08:00
liujian
620b7f56a3
feat: enhance connector interface and implementations ( #2675 )
...
- Updated the Connector interface to return both stdout and stderr for command execution.
- Modified implementations in local, kubernetes, and ssh connectors to support the new return values.
- Improved documentation for the Connector interface methods for clarity.
- Added error handling for stderr in command execution across connectors.
- Introduced new utility functions for IP parsing and checking localhost IPs.
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-30 08:02:34 +00:00
liujian
5ff30bff45
feat: add webUI route ( #2668 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-23 09:12:02 +00:00
liujian
2b8ea3eb46
feat: test variable store in memory ( #2666 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-23 11:25:08 +08:00
liujian
39657b3dd9
fix: playbook delete is error ( #2654 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-10 14:04:24 +08:00
liujian
e5077f51e9
feat: add role dependency at meta ( #2652 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-09 14:52:07 +08:00
liujian
c71814aa09
fix: add index to groups ( #2649 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-07 11:22:20 +08:00
liujian
e3dec872f6
feat: add more web interface ( #2648 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-03 14:48:49 +08:00
liujian
878b69a9bd
feat: add resources tags api ( #2604 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-05 10:19:21 +00:00
liujian
9c87926929
feat: add web api ( #2591 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-26 09:36:13 +00:00
liujian
8c84ea7a33
doc: defined env by struct ( #2589 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-23 06:55:10 +00:00
liujian
4c9256cae4
feat: add ssh auth private_key_content ( #2585 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-22 09:43:09 +00:00
pixiake
fa2e0f477e
support prometheus tasks ( #2573 )
...
Signed-off-by: pixiake <guofeng@yunify.com>
2025-05-16 08:52:03 +00:00
liujian
fb474bde50
feat: change builtin defined variable ( #2561 )
...
* feat: change inventory_hosts to hostvars
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: change inventory_hosts to hostvars
Signed-off-by: joyceliu <joyceliu@yunify.com>
---------
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-13 06:40:01 +00:00
liujian
13df73e0ea
feat: add gather_facts cache ( #2558 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-12 06:20:01 +00:00
liujian
7560b29946
feat: add delete cluster command ( #2528 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2025-04-11 14:04:47 +08:00
liujian
2c19021fb2
feat: more type to defined playbook file ( #2522 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2025-04-03 15:23:00 +08:00
liujian
34448781a6
feat: use unstructured to get or set value for config ( #2519 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2025-03-31 10:00:11 +08:00
liujian
e40c57fb9f
fix: change pipeline to playbook ( #2512 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2025-03-24 09:51:03 +08:00
liujian
ccca0edd81
fix: ssh command no need to escape ( #2507 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2025-03-18 02:37:28 +00:00
liujian
93addfb88e
feat: Adding generic methods to template parsing ( #2503 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2025-03-10 19:10:53 +08:00
liujian
86ff6371b6
Uninstall docker interface ( #2478 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2025-03-05 18:55:12 +08:00
liujian
b79482aa05
refactor: move env to _const. ( #2455 )
...
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-11-13 06:06:59 +00:00
dbb_DingYongliang
a083447d15
Feature capkk controller ( #2419 )
...
* capkk controller
* capkk scope
* feat: update capkk controller
* feat: add secrets reconcile
* feat: update go.mod
* feat: update go.sum
* feat: bug fix and deal with secrets
* fix: remove webhook
* fix: lint error
2024-10-29 17:57:05 +08:00
liujian
92dd64f227
only use sudo mode to execute command ( #2405 )
...
* fix: graceful delete runtime dir.
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: graceful delete runtime dir.
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: delete not `sudo` mode.
Signed-off-by: joyceliu <joyceliu@yunify.com>
---------
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-09-12 02:03:28 +00:00
liujian
289a6b0659
add `sudo_password` to use sudo mod. ( #2402 )
...
* fix: graceful delete runtime dir.
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: graceful delete runtime dir.
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: add `sudo` and SHELL in connector.
Signed-off-by: joyceliu <joyceliu@yunify.com>
---------
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-09-11 15:38:59 +08:00
liujian
d1026e15a5
add `sudo` and SHELL in connector ( #2398 )
...
* fix: graceful delete runtime dir.
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: graceful delete runtime dir.
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: add `sudo` and SHELL in connector.
Signed-off-by: joyceliu <joyceliu@yunify.com>
---------
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-09-11 03:07:15 +00:00
II
865913fea9
feat: add more golangci lint rule. ( #2366 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-08-21 16:33:36 +08:00
II
718de31d46
change package name ( #2355 )
...
* fix: set default work_dir is "./kubekey".
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: change pkg/apis/core to pkg/apis/project pkg/apis/kubekey to pkg/apis/core .
Signed-off-by: joyceliu <joyceliu@yunify.com>
---------
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-08-12 13:39:06 +08:00
II
647ae222bf
fix: set default work_dir is "./kubekey". ( #2354 )
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-08-12 11:26:06 +08:00
II
526e234594
fix: inventory_name is localhost, install failed ( #2344 )
...
* fix: misspelling
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: misspelling
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: misspelling
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: misspelling
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: user go-template instance pongo2-template
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: not set incorrect
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: deal localhost node.
Signed-off-by: joyceliu <joyceliu@yunify.com>
---------
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-08-05 17:14:52 +08:00
II
4919e639c5
feature: use go template instance pongo2 template ( #2340 )
...
* fix: misspelling
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: misspelling
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: misspelling
Signed-off-by: joyceliu <joyceliu@yunify.com>
* fix: misspelling
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: user go-template instance pongo2-template
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: not set incorrect
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
* feat: more beautiful progress bar
Signed-off-by: joyceliu <joyceliu@yunify.com>
---------
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-08-05 10:06:49 +08:00
joyceliu
e70863ddd9
fix: golangci-lint
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-07-01 09:45:29 +08:00
joyceliu
1a4f7d6122
fix: add gather_facts interface to connector
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-06-24 18:10:45 +08:00
joyceliu
2eed0820d7
fix: add operator
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-05-29 10:32:02 +08:00
joyceliu
bdef602ddf
feat: add create cluster command
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-05-21 19:21:48 +08:00
joyceliu
6a7dbabd49
fix: Adjust the location structure of the playbook to facilitate sequential execution of the playbook
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-03-08 21:22:00 +08:00
joyceliu
734709f15b
fix: Optimize loop logic.
...
fix: watcher exclude unknown file.
fix: prepare variable before run task. parse tmpl syntax to actual value.
fix: add some info log.
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-03-07 17:38:01 +08:00
joyceliu
c70cd6576e
feat: add artifact precheck
...
feat: add default hostname (localhost) to represent local mechine if inventory not set.
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-02-07 19:05:46 +08:00
joyceliu
e4db402e49
feat: add proxy client to transport resource to local.
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-02-06 16:08:43 +08:00
joyceliu
5205c4cbdd
feat: Change the klog print format. Remove custom-defined cache instances and use Kubernetes cache instead.
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-01-15 19:23:31 +08:00
joyceliu
2a676185e2
feat: kubekey gitops
...
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-01-05 15:14:36 +08:00