Commit Graph

2576 Commits

Author SHA1 Message Date
liujian b49cfc7fc4
Update OWNERS 2025-08-19 10:35:27 +08:00
liujian 8138d1e52a
fix: Strengthen nodelocaldns (#2702)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-08-18 11:03:08 +08:00
zuoxuesong-worker a6c14affc1
feature: add pull image platform (#2705)
feature: add pull image platform

Signed-off-by: xuesongzuo@yunify.com <xuesongzuo@yunify.com>
2025-08-15 15:32:04 +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 48b7c3b34b
feat: check inventory when it's changed (#2691)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-08-07 17:50:23 +08:00
zuoxuesong-worker 6ec705768c
bugfix: update add user command ,check wheather user exist or not ,only create user when user not exist (#2692)
Signed-off-by: xuesongzuo@yunify.com <xuesongzuo@yunify.com>
2025-08-06 15:59:54 +08: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 7b84f4a6fc
feat: add result of POST /resources/schema/config (#2671)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-25 14:51:42 +08:00
liujian 7b61dafb95
fix: add ui-path for kk web (#2670)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-25 11:20:41 +08:00
liujian 5ff30bff45
feat: add webUI route (#2668)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-23 09:12:02 +00:00
liujian 6b9636d144
feat: enhance schema handling with playbook results (#2667)
- Added a new field `Result` to `SchemaTablePlaybook` to store the result of the associated playbook.
- Updated the `allSchema` function to unmarshal and assign the playbook result if available.
- Cleared `PlaybookPath` after processing to prevent unintended references.
- Adjusted the `SchemaTable` struct to include `PlaybookPath` for better schema management.

Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-23 11:31:16 +08: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 86c99122fa
feat: make the nodelocaldns bind IP configurable. (#2665)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-21 15:23:37 +08:00
liujian 71c1b2e08f
feat: rescue success continue execute playbook (#2664)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-21 14:12:37 +08:00
liujian 98b688be10
feat: add delegate_to (#2662)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-18 07:22:58 +00:00
liujian 873e4dda44
fix: error update playbook (#2660)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-18 10:28:34 +08:00
liujian d2e8e3699a
fix: install os package but not upgrade it (#2658)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-15 18:33:31 +08:00
liujian 2e6bad6355
fix: add sshPort of listIP result (#2656)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-14 11:03:29 +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 b68c73de2d
feat: add role dependency in builtin playbook (#2653)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-09 16:10:18 +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 bca5b96a4a
feat: add local dns for image_registry.auth.registry (#2651)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-08 10:50:21 +08:00
liujian 96d6bc73c9
feat: more expiration for ca file (#2650)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-07 08:17:48 +00: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 bbb8a4a031
add result module (#2646)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-30 13:42:18 +08:00
liujian 794d28c706
fix: delete debug field (#2642)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-27 07:19:39 +00:00
liujian 8237a2fd88
feat: install image_registry (#2640)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-26 17:48:18 +08:00
liujian 9686e047be
fix: change custom function ipInCIDR (#2639)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-26 03:19:38 +00:00
liujian 9b36d38bc3
fix: reset failed after delete service (#2636)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-24 10:20:37 +00:00
liujian 2acae88739
fix: rename image_registry to registry (#2635)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-24 17:26:33 +08:00
liujian a306bd6bca
feat: add delete image_registry (#2634)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-23 18:01:08 +08:00
liujian 8593c18fcc
cleanup: move the binary_type fact setting to the pre_install hook (#2633)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-23 07:33:36 +00:00
liujian 9ade693b0f
fix: clear default inventory and configuration logic. (#2632)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-23 15:13:02 +08:00
liujian e530832452
fix: Eliminate duplicate parse logic. (#2631)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-20 08:22:34 +00:00
liujian b629ec57ad
feat: add module add_hostvars (#2629)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-20 15:07:04 +08:00
liujian 03c6ce1fe7
docs: builtin docs (#2626)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-18 09:29:32 +00:00
liujian e3f2372ee0
feat: docs for modules (#2623)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-17 09:40:31 +00:00
liujian 2cb9d8d4c4
fix: more deep clear (#2622)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-17 15:46:54 +08:00
liujian 982539ca7f
feat: add more default kubernetes version (#2618)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-17 15:26:54 +08:00
liujian fc0e99161b
fix: restart cri after clear iptables (#2616)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-12 09:58:27 +00:00
liujian 1d99686985
fix: error resources path (#2614)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-12 06:47:27 +00:00
liujian e109fbb7cf
fix: Offline install (#2611)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-11 10:56:26 +00:00
liujian e43cf2a5de
fix: use empty func in template syntax (#2610)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-11 17:37:46 +08:00
liujian cfb83de1db
fix: Only set the kube_version if it is not already defined in the config file. (#2608)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-11 09:11:26 +00:00
liujian c7a42e53a1
fix: Modify the node parsing order. (#2607)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-11 09:30:46 +08:00
liujian 00f4b8cc5f
feat: store src domain in local dir (#2606)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-09 17:01:44 +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