Commit Graph

25 Commits

Author SHA1 Message Date
liujian ea70663492
feat: add validation for unique host variables in inventory (#2779)
This update introduces a function to ensure that internal IPv4 addresses and SSH connections are unique across all hosts in the inventory. It checks for duplicates and returns an error if any are found, enhancing the integrity of the inventory data.

Signed-off-by: redscholar <blacktiledhouse@gmail.com>
2025-09-28 16:14:05 +08:00
zuoxuesong-worker 9b1bd9ffe1
bugfix: fix ssh check with wrong local key check (#2772)
bugfix: fix ssh check with wrong local key check



bugfix: fix ssh check with wrong local key check



bugfix: fix ssh check with wrong local key check

Signed-off-by: xuesongzuo@yunify.com <xuesongzuo@yunify.com>
2025-09-22 10:11:58 +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 3d1461f8ce
bugfix : fix issue 6796 (#2752)
bugfix : fix bug 6796



bugfix : fix bug 6796



bugfix : fix bug 6796



bugfix : fix issue 6796

Signed-off-by: xuesongzuo@yunify.com <xuesongzuo@yunify.com>
2025-09-08 11:07:36 +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
liujian d62e56985a
fix: add kubernetes version from config (#2724)
Signed-off-by: redscholar <blacktiledhouse@gmail.com>
2025-08-26 15:00:20 +08:00
liujian ba98704f30
Update resources.go 2025-08-25 13:47:07 +08:00
liujian 3885b443ac
fix: change builtin/core architectures (#2718)
Signed-off-by: redscholar <blacktiledhouse@gmail.com>
2025-08-22 21:59:40 +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 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 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 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 1d99686985
fix: error resources path (#2614)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-06-12 06:47:27 +00: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 6e0cdbec1f
fix: display task progressbar in file. (#2599)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-29 15:21:30 +08: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