mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-01 00:45:23 +00:00
Add the release to the status endpoint
Change-type: minor Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
769e2f3c51
commit
c0e68bb069
@ -385,6 +385,7 @@ export function createV2Api(router: Router, applications: ApplicationManager) {
|
|||||||
|
|
||||||
router.get('/v2/state/status', async (_req, res) => {
|
router.get('/v2/state/status', async (_req, res) => {
|
||||||
const localMode = await applications.config.get('localMode');
|
const localMode = await applications.config.get('localMode');
|
||||||
|
const currentRelease = await applications.config.get('currentCommit');
|
||||||
|
|
||||||
const pending = applications.deviceState.applyInProgress;
|
const pending = applications.deviceState.applyInProgress;
|
||||||
const containerStates = (await applications.services.getAll()).map(svc =>
|
const containerStates = (await applications.services.getAll()).map(svc =>
|
||||||
@ -432,6 +433,7 @@ export function createV2Api(router: Router, applications: ApplicationManager) {
|
|||||||
overallDownloadProgress,
|
overallDownloadProgress,
|
||||||
containers: containerStates,
|
containers: containerStates,
|
||||||
images: imagesStates,
|
images: imagesStates,
|
||||||
|
release: currentRelease,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user