This message was deleted.
# rancher-desktop
a
This message was deleted.
p
The API version isn't semver, so it'll be weird… maybe it would have helped if we had date-versioned APIs instead (but we don't, and we don't currently support older versions of the API anyway)
q
saying
targeting server version: 1
would be fine w/o saying it's semver
it's really the
v
that bothers me πŸ™‚
yes, date versions might make sense, but, I'm not asking for boil the oceans solutions πŸ™‚
f
What bothers me more is that the
rdctl
version is not the same as the Rancher Desktop version. Since they are always released together, they should have the same version.
q
yeah, that too, but i think i already complained about that πŸ™‚
f
And I don't really care about semver for applications; it is only useful for libraries and APIs
q
when I'm running
rdctl version
, I really want to get
1.9.0
πŸ™‚
πŸ‘ 1
But, while i'm waiting for the oceans to boil, i'll ask to not see
v
πŸ˜‰
f
Just squint for now πŸ˜›
🀣 1
q
πŸ™ˆ
f
Or that πŸ˜‚
p
Think of it as "that bit in the URL", and not a version number πŸ™‚
q
what url?
p
<http://127.0.0.1:6107/v1/settings>
, etc. (The thing that
rdctl
talks to internally)
f
rdctl api settings
is the same as
rdctl api /v1/settings
See also
Copy code
$ rdctl api / | jq -r .[]
GET /
GET /v0
GET /v1
GET /v1/about
[...]
q
that's such an implementation detail that I as a user claim I don't care about it πŸ™‚
f
Not sure why the method and the endpoint a smashed together in a single string
In that case you could make the argument that by default you don't want to see the API version at all, and just the app version
q
by default? almost certainly πŸ™‚
and even kubectl is slowly moving in that direction
Copy code
% kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: <http://version.Info|version.Info>{Major:"1", Minor:"26", GitVersion:"v1.26.3", GitCommit:"9e644106593f3f4aa98f8a84b23db5fa378900bd", GitTreeState:"clean", BuildDate:"2023-03-15T13:40:17Z", GoVersion:"go1.19.7", Compiler:"gc", Platform:"darwin/amd64"}
Kustomize Version: v4.5.7
Server Version: <http://version.Info|version.Info>{Major:"1", Minor:"26", GitVersion:"v1.26.3-gke.1000", GitCommit:"f14ee8d868842856ce474ba2ebadece18a6ca6cf", GitTreeState:"clean", BuildDate:"2023-03-30T09:31:19Z", GoVersion:"go1.19.7 X:boringcrypto", Compiler:"gc", Platform:"linux/amd64"}
Copy code
% kubectl version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.26.3
Kustomize Version: v4.5.7
Server Version: v1.26.3-gke.1000
Note that it doesn't tell me about the api version πŸ™‚
f
It tells you the server versions, which is pretty similar to an API version, except the rule for compatibility are more complex
p
Yeah, I think what we really want is just the RD app version, and if client version != server version show a warning about it.