Feature/extend cluster-agent REST API [basics] #1121
Closed
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.
Introducing new REST endpoints for cluster-agent-api
/version: get the version of installed MicroK8s. Might be useful in unit/integration testing, health checks, or About/Info pages in a UI/IDE (eg. a MicroK8s Plugin for VS-code)microk8s.status
with info related to their statuses (enabled and active)/service/logs: get the last <N> lines of logs from a selected serviceInfo on how to test them with curl can be found in the relative README.md page.
Integration tests have been provided for all of those
42 new endpointsAdditionally, the callback validation process has been enhanced with a Header Auth option. Instead of passing the callback token from a json body request or form field, it can be passed as a header in the request:
Callback-Token: <CALLBACK_TOKEN_VALUE>