feat: expose interLink server version via API - #552
Open
w3lld1 wants to merge 3 commits into
Open
Conversation
Signed-off-by: w3lld1 <42353747+w3lld1@users.noreply.github.com>
✅ Deploy Preview for interlink-dev canceled.
|
Signed-off-by: w3lld1 <42353747+w3lld1@users.noreply.github.com>
dciangot
reviewed
Aug 20, 2026
| mutex.HandleFunc("/pinglink", interLinkAPIs.Ping) | ||
| mutex.HandleFunc("/getLogs", interLinkAPIs.GetLogsHandler) | ||
| mutex.HandleFunc("/updateCache", interLinkAPIs.UpdateCacheHandler) | ||
| mutex.HandleFunc("/version", api.VersionHandler(virtualkubelet.KubeletVersion)) |
Member
There was a problem hiding this comment.
I'd rather put the running interLink software version, in place of the kubelet.
Signed-off-by: w3lld1 <42353747+w3lld1@users.noreply.github.com>
Author
|
Thanks — updated the endpoint in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I added a
GET /versionendpoint so operators can query the version of the running interLink server without shell access. The response uses the same build-time version value already shown by the CLI and startup logs:{"version":"0.6.2"}I also return
405 Method Not AllowedwithAllow: GETfor other methods.Validation
go test -p 1 ./pkg/interlink/api ./cmd/interlink -count=1go vet ./pkg/interlink/api ./cmd/interlinkgit diff --check origin/main...HEADI did not run the K3s end-to-end suite locally because it requires a full cluster environment; the focused handler and server-package checks cover this change.
Fixes #544