Skip to content

Commit

Permalink
Add modified tctl commands and find endpoint response
Browse files Browse the repository at this point in the history
  • Loading branch information
vapopov committed Jan 10, 2025
1 parent c906170 commit 83bdae2
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions rfd/0144-client-tools-updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand 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
Expand All @@ -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",
}
```

Expand Down

0 comments on commit 83bdae2

Please sign in to comment.