Commit Graph

27 Commits

Author SHA1 Message Date
liujian 4c71311fe2
refactor: improve responseWriter implementation in proxy transport (#2836)
Signed-off-by: redscholar <blacktiledhouse@gmail.com>
2025-11-03 09:54:16 +08:00
liujian 204fb6c525
refactor: replace custom decode function with runtime.DecodeInto for improved error handling in fileStorage (#2822)
- Updated Create, Get, and GuaranteedUpdate methods to use runtime.DecodeInto instead of a custom decode function.
- Enhanced error messages for better debugging.
- Commented out the old decode function for potential future reference.

Signed-off-by: redscholar <blacktiledhouse@gmail.com>
2025-10-24 14:35:23 +08:00
liujian 4c72031a74
fix: Make the /schema/config POST endpoint more robust. (#2699)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-08-14 14:00:03 +08:00
liujian 0f40e29791
fix: more clear error (#2694)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-08-12 03:07:45 +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 39657b3dd9
fix: playbook delete is error (#2654)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-10 14:04:24 +08:00
liujian 9c87926929
feat: add web api (#2591)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-26 09:36:13 +00:00
liujian ecfb0fe2b3
fix: Unexpected error during initial resource listing (#2579)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-20 02:45:07 +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 954579beb5
fix: Remove the error stack from the intermediate layer. (#2521)
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2025-04-01 17:13:48 +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 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 658023cc8c
fix: error local router. (#2388)
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-09-04 14:59:23 +08: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
joyceliu 63bd058738 feat: set base default dir for kubernetes connector.
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-07-15 12:19:27 +08:00
joyceliu e70863ddd9 fix: golangci-lint
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-07-01 09:45:29 +08:00
joyceliu eab066ba10 feat: add check item for kk precheck command
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-06-20 19:14: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 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 426e13dd79 fix: change magic string "ownerReferences:pipeline" to constant
fix: add some comment.

Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-02-20 13:56:20 +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 ed3f6a97c5 fix: the local file watcher is invalid
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-02-07 12:24:42 +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