From 52b47b91f05952e8cbb66641e885d7fd434412d7 Mon Sep 17 00:00:00 2001 From: Balena CI <34882892+balena-ci@users.noreply.github.com> Date: Mon, 13 Dec 2021 18:53:39 +0200 Subject: [PATCH] v12.11.20 --- .versionbot/CHANGELOG.yml | 28 ++++++++++++++++++++++++++++ CHANGELOG.md | 5 +++++ VERSION | 2 +- balena.yml | 2 +- package-lock.json | 2 +- package.json | 4 ++-- 6 files changed, 38 insertions(+), 5 deletions(-) diff --git a/.versionbot/CHANGELOG.yml b/.versionbot/CHANGELOG.yml index 22c2cf0c..fa698dd9 100644 --- a/.versionbot/CHANGELOG.yml +++ b/.versionbot/CHANGELOG.yml @@ -1,3 +1,31 @@ +- commits: + - subject: Skip initial apply until a target has been set + hash: 9015b0e22f7edf973798d5ace3d60e32d43bb042 + body: > + The supervisor always applies target state on start to ensure that the + + device is at the correct in case of a crash or another reason. This had + + the side effect that if the database is deleted, the supervisor would + + apply target state (which is empty), stopping services and possibly + + causing volume data loss. + + + This prevents that behavior and ensures that the supervisor only + + applies target state if a target has been set either by the cloud, + preload or local + + mode. + footer: + Change-type: patch + change-type: patch + author: Felipe Lalanne + nested: [] + version: 12.11.20 + date: 2021-12-13T12:33:34.693Z - commits: - subject: >- Fix default value for BALENA_SUPERVISOR_POLL_INTERVAL The API typically diff --git a/CHANGELOG.md b/CHANGELOG.md index f35c82a9..af21465e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY! This project adheres to [Semantic Versioning](http://semver.org/). +# v12.11.20 +## (2021-12-13) + +* Skip initial apply until a target has been set [Felipe Lalanne] + # v12.11.19 ## (2021-12-10) diff --git a/VERSION b/VERSION index 26a0defb..25bafbb6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -12.11.19 \ No newline at end of file +12.11.20 \ No newline at end of file diff --git a/balena.yml b/balena.yml index f2bf17b1..ef7d0f65 100644 --- a/balena.yml +++ b/balena.yml @@ -2,4 +2,4 @@ name: balena-supervisor description: 'Balena Supervisor: balena''s agent on devices.' joinable: false type: sw.application -version: 12.11.19 +version: 12.11.20 diff --git a/package-lock.json b/package-lock.json index 4399cfdf..f81280ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "balena-supervisor", - "version": "12.11.19", + "version": "12.11.20", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5ee20ef2..a4c9cd95 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "balena-supervisor", "description": "This is balena's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as the balena API informs it to.", - "version": "12.11.19", + "version": "12.11.20", "license": "Apache-2.0", "repository": { "type": "git", @@ -139,6 +139,6 @@ } }, "versionist": { - "publishedAt": "2021-12-10T21:59:53.654Z" + "publishedAt": "2021-12-13T12:33:34.924Z" } }