Commit Graph

9 Commits

Author SHA1 Message Date
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
24sama 3dd48dc8df refactor KubeKey project structure
Signed-off-by: 24sama <jacksama@foxmail.com>
2022-10-06 11:58:06 +08:00
pixiake 8f2a33abe7 feat: auto generate k3s registries.yaml
Signed-off-by: pixiake <guofeng@yunify.com>
2022-09-09 21:56:36 +08:00
24sama 5a1efbfd7c modify workdir directory tree.
Signed-off-by: 24sama <leo@kubesphere.io>
2022-01-14 15:58:09 +08:00
pixiake ba620e7320 Support kubekey to independently generate certificates
Signed-off-by: pixiake <guofeng@yunify.com>
2021-12-29 15:34:06 +08:00
24sama c49776983e modify ImagePushModule to use the containerd sdk
Signed-off-by: 24sama <leo@kubesphere.io>
2021-12-28 21:06:30 +08:00
24sama f4b7fd4605 dev-v2.0.0: add copyright
Signed-off-by: 24sama <leo@kubesphere.io>
2021-11-15 11:31:28 +08:00
24sama b65da92971 dev-v2.0.0: fix permission denied error
Signed-off-by: 24sama <leo@kubesphere.io>
2021-11-06 14:52:47 +08:00
24sama 88c26e54a1 dev-v2.0.0: add new api version and adjust project structure
Signed-off-by: 24sama <leo@kubesphere.io>
2021-11-01 18:15:16 +08:00