From 83bdae2025001a2e22461babd56cbec6f32ca2d1 Mon Sep 17 00:00:00 2001 From: Vadym Popov Date: Fri, 10 Jan 2025 13:13:11 -0800 Subject: [PATCH] Add modified tctl commands and `find` endpoint response --- rfd/0144-client-tools-updates.md | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/rfd/0144-client-tools-updates.md b/rfd/0144-client-tools-updates.md index c38960427a747..34ba8062971c8 100644 --- a/rfd/0144-client-tools-updates.md +++ b/rfd/0144-client-tools-updates.md @@ -199,8 +199,11 @@ installed version of client tools on endpoints. By defining the `proxy` flag, we can use the get command without logging in. ``` -$ tctl autoupdate client-tools get --proxy proxy.example.com -{"target_version": "2.0.0"} +$ tctl autoupdate client-tools status --proxy proxy.example.com --format json +{ + "mode": "enabled", + "target_version": "X.Y.Z" +} ``` ##### Cluster configuration @@ -234,12 +237,13 @@ spec: # cluster level. Disable client tools automatic updates only if self-managed # updates are in place. mode: enabled|disabled - - [...] ``` ``` -$ tctl autoupdate client-tools configure --set-mode=disabled -Automatic updates configuration has been updated. +$ tctl autoupdate client-tools enable +client tools auto update mode has been changed + +$ tctl autoupdate client-tools disable +client tools auto update mode has been changed ``` By default, all Cloud clusters will be opted into `tools.mode: enabled`. All @@ -254,8 +258,11 @@ spec: target_version: X.Y.Z ``` ``` -$ tctl autoupdate client-tools configure --set-target-version=1.0.1 -Automatic updates configuration has been updated. +$ tctl autoupdate client-tools target X.Y.Z +client tools auto update target version has been set + +$ tctl autoupdate client-tools target --clear +client tools auto update target version has been cleared ``` For Cloud clusters, `target_version` will always be `X.Y.Z`, with the version @@ -268,13 +275,10 @@ the proxy side to minimize requests to the auth service. In case of an unhealthy cache state, the last known version of the resources should be used for the response. ``` -$ curl https://proxy.example.com/v1/webapi/find | jq . +$ curl https://proxy.example.com/v1/webapi/find | jq .auto_update { - "auto_update": { - "tools_mode": enabled, - "tools_version": "X.Y.Z", - } - [...] + "tools_auto_update": true, + "tools_version": "X.Y.Z", } ```