Oguz Kilcan e7dfbc9c49
fix: add omnictl backward compatibility with older Omni servers
v1.6 omnictl uses new gRPC management endpoints for user operations (CreateUser, ListUsers, UpdateUser, DestroyUser) that don't exist on older Omni versions, and queries the Notification resource which was introduced in v1.6. This makes every omnictl command fail against pre-v1.6 Omni.

Detect the server version and:
 - Skip Notification listing on Omni instances older than v1.6
 - Fall back to direct COSI resource manipulation for user commands create, delete, list, set-role) on older Omni instances
 - Return clear version errors for v1.6-only features (secret rotation)
 - Pass ServerInfo through WithClient so commands can version-gate

Signed-off-by: Oguz Kilcan <oguz.kilcan@siderolabs.com>
(cherry picked from commit 913d72463cd5e73ffc4bc524b7a16c4becdd3d40)
2026-03-18 17:58:53 +03:00
..
2025-10-15 16:49:02 +02:00
2024-02-29 17:19:57 +04:00
2024-02-29 17:19:57 +04:00