Commit graph

227 commits

Author SHA1 Message Date
Peng Peng
61d793e4c6
cli, daemon: add olares-cli status backed by olaresd /system/status (#2917)
* cli, daemon: add `olares-cli status` backed by olaresd /system/status

Adds a new top-level `olares-cli status` command that calls the local
olaresd daemon's `/system/status` HTTP endpoint and prints either a
grouped, annotated human-readable report or raw JSON.

To avoid duplicating the response schema, the daemon's `state` struct
and related enums are extracted into a new shared package
`cli/pkg/daemon/state`. The daemon now type-aliases those types so all
existing daemon call sites keep compiling unchanged.

Made-with: Cursor

* cli: drop unused state.APIResponse envelope type

The HTTP client in cli/pkg/daemon/api/client.go intentionally uses an
inline anonymous envelope with json.RawMessage for the data field so
that --json mode can passthrough the bytes verbatim, so the public
APIResponse{Data State} type defined here had zero references. Remove
it; if a strongly-typed consumer ever shows up, re-add then.

Addresses Cursor Bugbot feedback on PR #2917.

Made-with: Cursor
2026-04-21 00:29:50 +08:00
dkeven
f916f50a23
fix(cli): allow release version ovverride for local test (#2902) 2026-04-17 00:11:05 +08:00
eball
51214c3d80
cli: add functions to detect MThreads AI Book (#2883)
* feat(connector): add functions to detect Mthreads AI Book and RockChip models

* feat(gpu): add MThreads GPU support and related modules

* fix(cli): remove redundant import of amdgpu package

* chore(cli): remove unnecessary tasks when adding node

---------

Co-authored-by: dkeven <dkvvven@gmail.com>
2026-04-14 19:53:08 +08:00
dkeven
1d3a3c6e1c
feat(cli): enable gpu plugin on worker node if eligible (#2881) 2026-04-14 17:42:29 +08:00
dkeven
0b9da26dc8
fix(cli): skip collecting envoy config if not ready (#2869) 2026-04-13 22:54:41 +08:00
dkeven
c97b42c4cf
feat(cli): add daily upgrader to migrate master node affinity (#2865)
feat(cli): add upgrader to migrate master node affinity
2026-04-13 19:19:38 +08:00
hysyeah
c21d683177
fix(l4): add x-authorization to extAuthz allow headers (#2857)
* fix: add x-authorization allow headers

* update l4-bfl-proxy image tag to v0.3.17
2026-04-10 23:16:13 +08:00
dkeven
e931280e29
fix(cli): correct upgrader line for daily version (#2853) 2026-04-10 14:28:14 +08:00
eball
e754dbfa17
chore: bump version to 1.12.7 in workflows and scripts (#2849) 2026-04-10 13:25:42 +08:00
dkeven
b9f7f1d7e7
chore(cli): add upgrader for mainline version 1.12.6 (#2850) 2026-04-10 13:25:23 +08:00
hysyeah
695b7823ab
fix(l4): forward location header from authelia response to client (#2847)
* fix: forward location header from authelia response to client

* update l4-bfl-proxy image tag to v0.3.16
2026-04-10 11:16:57 +08:00
hysyeah
2e174262d8
feat(cli): add cpu rapl constraint metric (#2845) 2026-04-09 23:41:38 +08:00
dkeven
dfae654a61
feat(cli): collect logs for new network architecture (#2834) 2026-04-08 22:16:31 +08:00
hysyeah
ac9ebfc713
cli: fix update selected gpu type (#2824)
* cli: fix update selected gpu type

* fix: move to 1_12_6_20260408
2026-04-08 15:05:16 +08:00
hysyeah
b110b3af1d
cli: fix kubesphere and node-exporter image tag (#2820) 2026-04-07 20:17:32 +08:00
dkeven
607b7f25d7
fix(cli): skip ineligible checks on windows (#2815) 2026-04-03 19:37:12 +08:00
dkeven
4ea66e2875
feat(cli): add commands to manage applications (#2811) 2026-04-03 19:34:37 +08:00
hysyeah
c605e0cbc5
feat: add lsblk, cpu-power metrics (#2810) 2026-04-03 19:32:28 +08:00
dkeven
c83282b189
fix(cli): also check readiness of k8s pods when installing (#2806) 2026-04-02 18:59:27 +08:00
hysyeah
95e2565521
l4: fix h2, master node cidr, add detailed termination log (#2799)
* fix: h2, master node cidr, add detailed termination log

* update l4 image tag to v0.3.15
2026-04-01 23:14:35 +08:00
dkeven
ec8caa423d
fix(cli): use new pattern to get legacy host ip config (#2797) 2026-04-01 21:20:44 +08:00
dkeven
5e39958918
fix(cli): skip importing images with no support for current arch (#2796) 2026-04-01 15:32:40 +08:00
hysyeah
805068c8d6
l4: fix cluster idle timeout (#2795) 2026-03-31 23:26:12 +08:00
dkeven
aa4b93d989
feat(cli): load existing image on cloud environment (#2788) 2026-03-31 18:47:42 +08:00
hysyeah
67bd43c01c
cli: update l4 deployment spec (#2767) 2026-03-27 17:46:36 +08:00
hysyeah
44fe3a8cb1
cli: move l4 to base upgrade (#2744)
* cli: move l4 to base upgrade

* set upgrade l4 retry
2026-03-26 15:48:47 +08:00
dkeven
ff751fc0e7
fix(cli): update some dependencies to solve vulnerabilities (#2728) 2026-03-20 21:12:11 +08:00
dkeven
8481aef086
fix(cli): set and check strict version in neccessary commands (#2718) 2026-03-20 16:44:04 +08:00
dkeven
d660a801f6
perf(cli): also preload images in cloud environment (#2709) 2026-03-18 21:02:40 +08:00
dkeven
002cb73f9d
fix(cli): do not provide version option for upgrade commands (#2666) 2026-03-12 14:01:54 +08:00
dkeven
6886aba804
fix(cli): trim bash warning if output needs to be unmarshalled (#2665) 2026-03-12 14:01:29 +08:00
dkeven
8f7a399683
fix(cli): clear master host config when preparing (#2633) 2026-03-05 21:51:05 +08:00
eball
683e31c6ef
fix(cli): remove error logging for GB10 chip check (#2626) 2026-03-05 14:15:11 +08:00
eball
8ce8b6c976
feat(cli): add time synchronization check using chronyc (#2616)
* feat(cli): add time synchronization check using chronyc

* feat(cli): update time synchronization check to validate stratum value
2026-03-04 14:43:42 +08:00
eball
85f1224616
cli: update etcd service template to use network-online.target (#2603) 2026-03-03 15:00:56 +08:00
eball
cf7125aac8
cli, daemon: enhance DGX Spark support and update GPU type handling (#2496)
* feat(gpu): enhance DGX Spark support and update GPU type handling

* feat(amdgpu): refactor AMD GPU detection and support for GB10 chip and APU

* feat(connector): enhance GB10 chip detection with environment variable support

* feat(gpu): enhance DGX Spark support and update GPU type handling

* feat(amdgpu): refactor AMD GPU detection and support for GB10 chip and APU

* feat(connector): enhance GB10 chip detection with environment variable support

* feat: add nvidia device plugin for gb10

* fix(gpu): update pod selector for hami-device-plugin based on GB10 chip detection

fix(deploy): bump app-service image version to 0.4.78

* feat: enable CGO for building on ARM architecture and adjust build constraints for Linux

* feat: enhance multi-architecture support for ARM64 in release workflow

* feat: update multi-arch setup for ARM64 in release workflow

* feat: enhance ARM64 multi-architecture support in release workflow

* feat: streamline ARM64 cross-compilation setup in release workflow

* feat: enhance ARM64 support by adding architecture-specific package installations

* feat: update ARM64 package sources in release workflow for improved compatibility

* feat: amd device plugin and container toolkit install

* refactor: remove GB10 chip type check from GPU info update

* feat(gpu): update hami version to v2.6.10-compatible for spark

* fix: remove gb10 device plugin checking

* fix: update klauspost/cpuid to v2.3.0

* fix: amd gpu check (#2522)

* feat: enhance storage device detection with USB serial properties

* feat: update hami version to v2.6.11-compatible-arm

* feat: add chip type support for AMD and NVIDIA GPUs in node label updates

* feat(gpu): supports auto binding GPU to app

* feat(gpu): remove chip type handling from GPU label updates

* feat(gpu): remove GPU type specification from DaemonSet and values.yaml

* feat(gpu): remove GB10 device plugin installation and related checks

* feat(gpu): update HAMi to v2.6.11

---------

Co-authored-by: dkeven <dkvvven@gmail.com>
Co-authored-by: hys <hysyeah@gmail.com>
2026-02-28 11:44:02 +08:00
hysyeah
6c40d3a288
cli: upgrade l4-bfl-proxy to v0.3.11 (#2557) 2026-02-25 21:46:22 +08:00
dkeven
d7ea9b40d6
fix(cli): ignore finished pods in readiness check (#2528) 2026-02-12 20:55:17 +08:00
dkeven
c696be90e6
feat(cli): add more lines to default journalctl limit (#2502) 2026-02-05 23:50:46 +08:00
dkeven
a982a1568a
fix(cli): seperate dmesg args for dmesg logs (#2497) 2026-02-05 23:49:05 +08:00
dkeven
2838d95f25
fix(cli): clear master host config when uninstalling (#2488) 2026-02-05 00:29:11 +08:00
dkeven
2bc061fcd8
fix(cli): do not override upgrade target version by config file (#2483) 2026-02-04 21:50:00 +08:00
dkeven
dd727befe7
fix(cli): bind config item to the effective command (#2474) 2026-02-03 20:14:14 +08:00
dkeven
83561bf1b7
feat: support more scheme update to env crs (#2473) 2026-02-03 20:09:19 +08:00
eball
7d12b792ea
ci: bump version to 1.12.6 (#2471) 2026-02-03 13:02:39 +08:00
dkeven
375dfceacb
fix(cli): unify config setting for release command (#2465) 2026-02-02 17:52:46 +08:00
dkeven
91aef38583
fix(cli): set node port range in minikube to allow smb service (#2460) 2026-02-02 11:19:54 +08:00
dkeven
5639d4844b
refactor(cli): unify config of command line options and envs (#2453) 2026-01-28 23:53:11 +08:00
hysyeah
90eed09f10
cli: upgrade l4-bfl-proxy to v0.3.10 (#2442) 2026-01-22 23:18:34 +08:00
hysyeah
f2aad6d9f6
cli: feat amdgpu install (#2430) 2026-01-22 00:05:01 +08:00