Commit Graph

2146 Commits

Author SHA1 Message Date
96b614ad6a Replace offline -> unmanaged in logs and tests
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-17 10:53:24 +00:00
c533631f70 unmanaged: Default to local mode in target state when unmanaged
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-17 10:53:23 +00:00
151af309fb config: Force config values to strings when storing in db
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-17 10:53:23 +00:00
3ca1d7c864 join: Disable local mode when joining a cloud
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-17 10:53:23 +00:00
82602abf8d config: Replace supervisorOfflineMode and offlineMode with unmanaged
Change-type: major
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-14 15:01:41 +00:00
5bea0fdc9d fix: Give unmanaged target states a source of 'local'
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-14 15:01:41 +00:00
178e80d92a Require an apikey for supervisor api in production unmanaged
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-14 15:01:41 +00:00
5bb3820d6a Switch to local mode in unmanaged mode
Change-type: major
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-14 15:01:41 +00:00
91a6340563 Move config.json flag back to the database
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-14 15:01:40 +00:00
19f8b75766 Revert "localMode: Remove local mode from device-config"
This reverts commit eda477ff86.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-14 11:05:57 +00:00
edb1f3b1e0 v8.7.1 v8.7.1 2018-12-13 16:33:15 +02:00
6011688041 Merge pull request #846 from balena-io/fix-sync
Fix sync.js after move to balena-sync
2018-12-13 14:31:39 +00:00
63d9d8df38 Fix sync.js after move to balena-sync
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-13 14:20:14 +00:00
6840c52b7c v8.7.0 v8.7.0 2018-12-13 01:25:44 +02:00
cbdba686f2 Merge pull request #835 from balena-io/os-migration-backup
Add the ability to restore volumes from a backup.tgz in the data part…
2018-12-12 20:24:20 -03:00
b94921263a Use rimraf package instead of handmade function
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-12-12 14:22:15 -03:00
af717a3761 Stricter validation for backup file contents
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-12-12 14:17:34 -03:00
42c39ed36d dindctl: Allow mounting a backup.tgz to test migration backups
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-12-12 14:17:34 -03:00
501272266b Add the ability to restore volumes from a backup.tgz in the data partition
Change-type: minor
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-12-12 14:17:33 -03:00
289b2dad4b v8.6.11 v8.6.11 2018-12-12 19:10:52 +02:00
057f62fcbf Merge pull request #817 from balena-io/balena-sync
Switch from resin-sync to balena-sync, update knex, sqlite3, lodash, coffee-coverage
2018-12-12 14:08:44 -03:00
35e11de69d Fix webpack loader for knex migrations so it works with knex 0.15.2
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-12-12 13:42:31 -03:00
7854c48f5a Ignore additional knex mssql dependencies in webpack build
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-12-12 13:42:31 -03:00
b52c92a044 Update lodash to v4.17.5
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-12-12 13:42:30 -03:00
3c52faea54 Remove the unused register-coffee-coverage
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-12-12 13:42:30 -03:00
d5b2fcd4dd Update knex to 0.15.2 and sqlite3 to 4.0.4
We also replace a createTableIfNotExists in the migrations with hasTable then createTable, to
avoid a warning message about it being not recommended.

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-12-12 13:42:29 -03:00
cbcf046d91 sync.js: Switch from resin-sync to balena-sync
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-12-12 13:42:28 -03:00
2a183e1258 v8.6.10 v8.6.10 2018-12-12 18:41:59 +02:00
f7fd34d96f Merge pull request #842 from balena-io/fix-resin-cleanup
Fix typo that prevented deleting old resin/ supervisor images
2018-12-12 13:40:16 -03:00
a52683ade0 Fix typo that prevented deleting old resin/ supervisor images
Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-12-11 13:27:39 -03:00
8a42d0020f v8.6.9 v8.6.9 2018-12-11 18:06:49 +02:00
161645bcbc Merge pull request #747 from balena-io/nested-changelog
Nested changelog
2018-12-11 17:05:03 +01:00
3134f0dceb versionbot: Add changelog yml file
This file allows other components to uniquely parse the information that
is contained in the changelog. It will be automatically managed by
versionist by appending the new commits on top. This is needed to
provide nested-changelogs.

Change-type: patch
Signed-off-by: Giovanni Garufi <giovanni@resin.io>
2018-12-11 16:31:06 +01:00
737c85dee4 v8.6.8 v8.6.8 2018-12-07 12:48:05 +02:00
8391ca741a Merge pull request #837 from balena-io/836-unexposed-ip-address
api: Ensure Supervisor API returns IP addresses
2018-12-07 10:46:19 +00:00
80203f29ad api: Ensure Supervisor API returns IP addresses
The move from pure CoffeeScript to TypeScript has brought a
few changes to the way transpiling happens. Previously, through
serendipity, the way `startIPAddressUpdate` was called worked
because of the binding convention pre-transpiling.

However, with the move to TypeScript, this has altered and
the assumption that a lack of parentheses would call the
method before supplying a callback into the returned function
is incorrect. The method must be specifically called first.

Connects-to: #836
Change-type: patch
Signed-off-by: Heds Simons <heds@balena.io>
2018-12-07 10:37:00 +00:00
2f71b70aaa v8.6.7 v8.6.7 2018-12-04 20:15:49 +02:00
cfdba17b1e Merge pull request #832 from balena-io/reduce-pull-usage
Update docker-progress to reduce memory usage when pulling images
2018-12-04 19:14:21 +01:00
5c3d7f20bc Update docker-progress to reduce memory usage when pulling images
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-04 17:05:23 +00:00
03ff1c3614 v8.6.6 v8.6.6 2018-12-04 18:53:14 +02:00
a8368104ef Merge pull request #831 from balena-io/830-api-docs-envvar-label
docs: Clarify Supervisor envvars exposure via label
2018-12-04 16:50:56 +00:00
79e7fb0b93 docs: Clarify Supervisor envvars exposure via label
Connects-to: #830
Change-type: patch
Signed-off-by: Heds Simons <heds@whaleway.net>
2018-12-04 16:38:26 +00:00
33549aa344 v8.6.5 v8.6.5 2018-12-04 12:13:08 +02:00
836f5d4e6c Merge pull request #829 from balena-io/update-mixpanle
Update mixpanel node dependency, to pick up path changes
2018-12-04 11:11:29 +01:00
e409ebf27d Update mixpanel node dependency, to pick up path changes
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-12-04 09:35:40 +00:00
6af1aa39d5 v8.6.4 v8.6.4 2018-11-30 20:48:24 +02:00
5b5a3eb85a Merge pull request #806 from balena-io/docs-legacy-env-vars
docs: Clarify that older supervisors use RESIN_ variables
2018-11-30 13:46:58 -05:00
7fe94ec115 docs: Clarify that older supervisors use RESIN_ variables
We add a note on state endpoint docs to use RESIN_ variables. Since users will likely navigate directly to each endpoint, we add the note on the docs for each endpoint, except for endpoints added in >= 7.21.0 (since that version never made it to production).

We also switch some variables that were still referenced as RESIN_ to now use BALENA_.

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2018-11-30 14:45:10 -03:00
fa89b5881f v8.6.3 v8.6.3 2018-11-29 13:43:27 +02:00
d2fa9994df Merge pull request #826 from balena-io/local-mode-unmanaged-fixes
Local mode unmanaged fixes
2018-11-29 12:42:01 +01:00