Commit Graph

828 Commits

Author SHA1 Message Date
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
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 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 e5077f51e9
feat: add role dependency at meta (#2652)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-07-09 14:52:07 +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 9686e047be
fix: change custom function ipInCIDR (#2639)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-26 03:19:38 +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 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 e3f2372ee0
feat: docs for modules (#2623)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-17 09:40:31 +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 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
liujian 72680b80be
feat: more fast execute task (#2603)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-05 14:07:39 +08:00
liujian 9ec3aa7472
fix: preserve the template formatting. (#2602)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-05 10:14:38 +08:00
liujian 6e0cdbec1f
fix: display task progressbar in file. (#2599)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-29 15:21:30 +08:00
liujian 71265adea8
fix: add Delete arp by kube-vip when uninstall/kubernetes (#2596)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-28 06:31:14 +00:00
liujian ff50e145ca
feat: add annotations to node (#2594)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-27 08:40:13 +00:00
liujian 38944a5d2f
feat: add schema service (#2593)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-27 06:41:14 +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 202700fb43
feat: run gather_facts by module (#2588)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-23 05:56:10 +00:00
liujian de5cc690e2
doc: Add details to the module comments. (#2587)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-23 02:30:10 +00:00
liujian d979c92066
fix: change failed_when execute time (#2586)
* fix: change failed_when execute time

Signed-off-by: joyceliu <joyceliu@yunify.com>

* doc: move pkg/util to pkg/controllers/util

Signed-off-by: joyceliu <joyceliu@yunify.com>

---------

Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-22 18:00:22 +08: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
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
pixiake fa2e0f477e
support prometheus tasks (#2573)
Signed-off-by: pixiake <guofeng@yunify.com>
2025-05-16 08:52:03 +00:00
liujian e97e538fa2
feat: add delete nodes command (#2565)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-14 11:26:26 +08: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 9a672ad646
feat: Support for auto-detecting nodes to add. (#2560)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-12 09:53:00 +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