Commit Graph

2105 Commits

Author SHA1 Message Date
Pagan Gazzard
d6e9283a15 Fix coffee-script lint failures 2018-11-02 14:50:12 +00:00
Pagan Gazzard
e788c630fb Run resin-lint for both coffee and typescript
Change-type: patch
2018-11-02 14:50:11 +00:00
Resin CI
572cabc9c1 v8.2.1 2018-11-02 15:44:28 +01:00
Pablo Carranza Vélez
51117e00ec
Merge pull request #785 from balena-io/resinci-yml
Add a .resinci.yml to disable regular docker and npm builds
2018-11-02 07:42:43 -07:00
Pablo Carranza Velez
f4882a06d4 Add a .resinci.yml to disable regular docker and npm builds
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-11-01 18:44:13 -07:00
Resin CI
7e2e5f7ae6 v8.2.0 2018-11-02 01:37:46 +01:00
Pablo Carranza Vélez
94d26fed33
Merge pull request #769 from balena-io/balena-supervisor
Rename most of the documentation and variable names from resin to balena
2018-11-01 17:36:36 -07:00
Pablo Carranza Velez
4bf6f75a4f Remove unused codepaths that do deltas from resin/scratch
The supervisor has been doing regular pulls instead of deltas
from scratch for a while now. We remove remaining references to
resin/scratch, and add a handler in docker-utils to fall back
to a regular pull with a null deltaSource (which should never be
called anyways, but is left as a precaution).

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-11-01 17:00:13 -07:00
Pablo Carranza Velez
8298487a88 Rename most of the documentation and variable names from resin to balena
Change-type: minor
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-11-01 17:00:13 -07:00
Resin CI
94ebc67839 v8.1.0 2018-11-02 00:35:43 +01:00
Pablo Carranza Vélez
2b291cdca8
Merge pull request #770 from balena-io/balena-supervisor-automation
Rename package to balena-supervisor and push to balena repos
2018-11-01 16:30:52 -07:00
Pablo Carranza Velez
fd5ca76752 Remove a deprecated debian repository from the aarch64 node image (used only at build-time)
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-11-01 14:59:41 -07:00
Pablo Carranza Velez
007bd168bb When updating from resin-supervisor to balena-supervisor, try to delete old resin-supervisor images
Change-type: minor
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-11-01 14:59:41 -07:00
Pablo Carranza Velez
7ffac14bb3 Rename package to balena-supervisor and push to balena repos in DockerHub
Change-type: minor
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-11-01 14:59:41 -07:00
Resin CI
fa29a1b997 v8.0.0 2018-11-01 14:27:23 +01:00
dfunckt
40a08ee4e5
Merge pull request #784 from balena-io/api-v5
api-binder: Use API v5
2018-11-01 15:25:44 +02:00
Akis Kesoglou
b71c59c002 api-binder: Use API v5
Change-type: major
2018-11-01 13:17:30 +02:00
Resin CI
ffd8171b48 v7.25.13 2018-10-31 23:43:57 +01:00
Pablo Carranza Vélez
7834a5bf82
Merge pull request #781 from balena-io/fix-api-update-forced
fix: When calling the /v1/update endpoint, always trigger a target st…
2018-10-31 15:42:13 -07:00
Pablo Carranza Velez
989a5e2c6a fix: When calling the /v1/update endpoint, always trigger a target state apply
getAndSetTargetState in the APIBinder had a check for whether the target state has changed.
When triggering an update from the API, we want to *always* call triggerApplyTarget, especially
when the update is forced. Otherwise the API endpoint doesn't work for forced updates (and in general,
will rarely trigger an update unless a change in the API's target state has happened)

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-31 14:26:56 -07:00
Resin CI
35d3f7e687 v7.25.12 2018-10-31 21:45:52 +01:00
Pablo Carranza Vélez
f29cbe23fe
Merge pull request #783 from balena-io/fix-service-balena-apikey
fix: Properly check for the balena-api label to inject the API key env var
2018-10-31 13:44:08 -07:00
Pablo Carranza Velez
d5094d8d3b fix: Properly check for the balena-api label to inject the API key env vars
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-31 13:13:09 -07:00
Resin CI
be533a0ef6 v7.25.11 2018-10-31 21:10:19 +01:00
Pablo Carranza Vélez
0d7335bdee
Merge pull request #782 from balena-io/fix-delete-old-apps
fix: When setting target state, delete old apps from the same source
2018-10-31 13:08:48 -07:00
Pablo Carranza Velez
d6ee60100d fix: When setting target state, delete old apps from the same source
In commit 19cd310da3 this line was deleted,
probably to avoid deleting local mode apps when setting the API target and
viceversa but we need to delete old apps to avoid problems when moving
the device between apps.

We now filter by source to avoid the problem with local mode too.

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-31 11:20:42 -07:00
Resin CI
2487ceb25e v7.25.10 2018-10-26 02:13:33 +02:00
Pablo Carranza Vélez
b60123bdbf
Merge pull request #780 from resin-io/logger-tests-longer-delay
test: Use longer delays in logger tests
2018-10-25 17:11:44 -07:00
Pablo Carranza Velez
1e47d0c434 test: Use longer delays in logger tests
We've seen at least one case where the 10ms delay
wasn't enough, causing the tests to fail where they shouldn't.

(Ideally we should find a better way to detect when the streams
have finished propagating, but this will avoid failures in the meantime).

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-25 16:48:06 -07:00
Resin CI
66b46cffd7 v7.25.9 2018-10-25 23:45:42 +02:00
Pablo Carranza Vélez
495bdf88b0
Merge pull request #779 from resin-io/docker-delta-2.2.2
Update docker-delta to v2.2.2
2018-10-25 14:43:01 -07:00
Pablo Carranza Velez
a205c3e72b Update docker-delta to v2.2.2
This fixes occasional timeouts in rsync after applying v2 deltas, which
cause unnecessary fallbacks to a regular pull.

This change also removes the need for the mkfifo native dependency (since
docker-delta 2.2.2 stops using it).

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-25 12:36:20 -07:00
Resin CI
e097a31348 v7.25.8 2018-10-24 01:07:11 +02:00
Pablo Carranza Vélez
2c5c9f72ee
Merge pull request #778 from resin-io/moar-fixes
Two more bugfixes for next release
2018-10-23 16:05:02 -07:00
Pablo Carranza Velez
1c5891ec09 ApplicationManager: when comparing images to save metadata, take docker image ids into account
Otherwise we may skip saving a target image to the db when updating from legacy supervisors,
which in turn prevents from deleting the legacy image entry (with imageId = 1), leaving the
supervisor in a state where it can't report its current state to the API.

While we're at it, we also remove an unused variable in _getStatus.

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-23 15:43:59 -07:00
Pablo Carranza Velez
67486146c4 entry.sh: Use symbolic link to link to legacy lock path
The lack of `-s` was a typo.

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-23 15:43:59 -07:00
Resin CI
f96c35d07b v7.25.7 2018-10-24 00:42:50 +02:00
Pablo Carranza Vélez
bd9013fcb7
Merge pull request #776 from resin-io/circle-tags
circle.yml: Only push tagged images on tagged commits
2018-10-23 15:40:40 -07:00
Pablo Carranza Velez
db443e10b8 circle.yml: Only push tagged images on tagged commits
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-23 15:15:49 -07:00
Resin CI
4eef50444a v7.25.6 2018-10-23 20:32:21 +02:00
CameronDiver
45dc26e344
Merge pull request #777 from resin-io/fix-local-detection
fix: Run checkTruthy on config values before using them
2018-10-23 20:29:41 +02:00
Cameron Diver
64de3d2f63
fix: Use fat arrow for cleanup method
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-23 19:13:34 +01:00
Cameron Diver
1879c76b00
fix: Run checkTruthy on config values before using them
Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
2018-10-23 18:32:38 +01:00
Resin CI
4b07d539c7 v7.25.5 2018-10-22 22:59:54 +02:00
Pablo Carranza Vélez
9996e20f17
Merge pull request #775 from resin-io/fix-apibinder-config-typo
fix: Properly get the config from target state before comparing durin…
2018-10-22 22:57:29 +02:00
Pablo Carranza Velez
f5b005bcb2 fix: Properly get the config from target state before comparing during initial config reporting
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-22 13:18:53 -07:00
Resin CI
beae3e03c5 v7.25.4 2018-10-22 12:29:33 +02:00
CameronDiver
0bfb829fee
Merge pull request #773 from resin-io/fix-config-bugs
Fix bugs with new config prefix and with updating from legacy containers
2018-10-22 12:26:56 +02:00
Pablo Carranza Velez
0eaae3d670 fix: When checking for legacy containers, properly get the labels from config
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-20 19:08:53 +02:00
Pablo Carranza Velez
922597e582 fix: Avoid trying to report duplicated values in initial config
We do this by formatting the keys from the target state before comparing them
with the ones from the current state (that are already formatted to strip the namespace
prefix).

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-10-20 18:58:13 +02:00