Commit Graph

4978 Commits

Author SHA1 Message Date
9ad2a6a343 v10.0.2 v10.0.2 2019-07-19 13:29:25 +03:00
15afa0e43d Merge pull request #1041 from balena-io/device-api-typos
device-api: fix up small typos
2019-07-19 11:28:00 +01:00
2cb6ecc150 device-api: fix up small typos
Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
2019-07-18 13:07:53 +01:00
93b64406d6 v10.0.1 v10.0.1 2019-07-11 19:38:13 +03:00
ab921aa1b6 Merge pull request #1035 from balena-io/dont-cleanup-referenced-volumes
Don't attempt to cleanup any target state referenced volumes
2019-07-11 09:36:21 -07:00
a796777967 Don't attempt to cleanup any target state referenced volumes
The code before this change could potentially remove a volume which
should not be removed if a container was deleted before the call that
references said volume.

To avoid this, we additionally filter the list of volumes to cleanup by
any that are referenced in the target state. This means that cleanup
will never remove it, as long as it's still supposed to be there,
regardless of if a container references it or not.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-11 16:35:29 +01:00
e4caf100b5 v10.0.0 v10.0.0 2019-07-10 17:18:38 +03:00
9fe1592a28 Merge pull request #1032 from balena-io/1026-dont-delete-volumes-implicitly
Don't delete volumes implicitly
2019-07-10 07:17:11 -07:00
e076622fe6 Don't remove volumes when switching into local mode
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-10 14:25:47 +01:00
050c10dbb0 Add volume tests and fix test fixture setup for applications
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-10 14:25:46 +01:00
3304825216 Add a supervisor endpoint to cleanup orphaned volumes
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-10 14:25:44 +01:00
5357d4729d Only remove volumes when we're moving between applications
Change-type: major
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-10 14:25:22 +01:00
9fdd1d7427 Reorder debug dockerfile to faster livepushes
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-10 14:25:21 +01:00
bb549a445b Dont try to set the commit if it's undefined
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-10 14:25:21 +01:00
1690171304 v9.18.8 v9.18.8 2019-07-10 12:26:25 +03:00
2684fd9fd1 Merge pull request #1027 from balena-io/broken-metabalena-link
docs: fix up broken meta-balena proxy link
2019-07-10 10:24:28 +01:00
baa0e87513 docs: fix up broken meta-balena proxy link
Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
2019-07-10 10:11:46 +02:00
64a8f5d884 v9.18.7 v9.18.7 2019-07-09 20:02:33 +03:00
e46fec2118 Merge pull request #1015 from balena-io/1014-delay-logstream
Dont setup a logstream until we're provisioned
2019-07-09 10:00:50 -07:00
e36ed26883 Upgrade Dockerode types
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-09 13:21:06 +01:00
37945b4aa5 Don't attempt to setup a log stream to the cloud before provision
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-09 13:21:05 +01:00
20a83e8e0a Add more typescript conversions and export utilities from existing
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-09 13:21:05 +01:00
4522d1ad86 v9.18.6 v9.18.6 2019-07-09 15:16:38 +03:00
821b5ea071 Merge pull request #1021 from mwohlert/instantly-apply-update-on-api-request
Apply targetState immediately after update request
2019-07-09 05:14:53 -07:00
39c9810bbc Merge remote-tracking branch 'balena/master' into instantly-apply-update-on-api-request 2019-07-09 13:10:15 +02:00
782fd783c1 v9.18.5 v9.18.5 2019-07-08 20:36:43 +03:00
e1fdafddfc Merge pull request #1031 from balena-io/roman/use-resin-lint
Use resin-lint for mocha tests check
2019-07-08 20:35:21 +03:00
bea97f47a7 Use resin-lint for mocha tests check
Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-07-08 19:07:47 +03:00
7a42b6719a Apply targetState immediately after update request
Cancel delayed promise if exists and schedule a new one without delay, when /v1/update is called

Change-type: patch
2019-07-06 00:06:42 +02:00
a817863aa4 v9.18.4 v9.18.4 2019-07-05 12:59:03 +03:00
b47816513b Merge pull request #1028 from balena-io/seperate-volumes
Use instantiations of compose objects throughout application-manager
2019-07-05 02:57:10 -07:00
89807c21fa Fix network composition parsing, and correctly report compose config
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-04 11:47:39 +01:00
286ba58069 Add tests for Volume
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-04 11:47:39 +01:00
e5d7379b74 Keep the network and volume models consistent across usage
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-03 10:42:42 +01:00
eaff3a2ee5 Pass around instantiated Network objects when comparing state
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-03 10:36:38 +01:00
23e564389d Seperate volume handling into manager and object classes
This change also makes sure that in the application-manager workflow we
pass around instances of the Volume class, rather than just the config.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-03 10:36:37 +01:00
fe20f1b400 Merge pull request #1023 from balena-io/fix-unnecessary-vpn-override
fix: When reporting initial config, avoid creating a "VPN enabled" un…
2019-07-02 08:40:10 -07:00
743c8406c9 fix: When reporting initial config, avoid creating a "VPN enabled" unnecessary override
Since we were comparing the VPN's value before adding the explicit "true", there were cases
were the VPN is off, and therefore "value" didn't match the default, so the supervisor would
create a device specific SUPERVISOR_VPN_CONTROL = true, which is unnecessary and causes issues if
users don't expect this and move the device to an app that has VPN disabled. The correct behavior
is to compare "varValue" and only create a device config var if this value differs from the default.

(This was the behavior before the TS conversion in 01ed7bb103 )

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
2019-07-01 12:28:46 -07:00
90e7ec0053 v9.18.3 v9.18.3 2019-07-01 11:51:28 +03:00
f53640ca4c Merge pull request #1025 from balena-io/roman/fix-test-run
Add mocha tests linter
2019-07-01 11:48:07 +03:00
36fa23ab7d Add mocha tests linter
A simple script that detects presence of .only statements in tests.
The idea is to avoid comitting them, so that all the tests are run with npm test.

Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-06-29 16:40:41 +03:00
a87f344607 v9.18.2 v9.18.2 2019-06-28 11:59:46 +03:00
8d72f04a3a Merge pull request #1017 from balena-io/upgrade-npm
Ensure that every architecture uses npm ci
2019-06-28 01:58:05 -07:00
92aa9b40ab Use jessie base images for i386-nlp
This fixes potential SIGILL errors with the supervisor on i386-nlp.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-06-27 17:09:31 +01:00
557f88965a Ensure that all architectures use a node version that supports ci
We do this by using the standalone installer pinned at v6.9.0. We use
the standalone installer because npm itself fails to upgrade on the
i386-nlp build (npm v3). The standalone installer is installed in /tmp,
and then to avoid mysterious CI errors, we use the original npm to run
the tests.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-06-27 17:09:31 +01:00
fe8ebfc0b0 v9.18.1 v9.18.1 2019-06-27 16:33:48 +03:00
ee5b4574b0 Merge pull request #1022 from balena-io/roman/fix-test-run
Fix tests run removing .only
2019-06-27 16:29:50 +03:00
aad1129f26 Fix tests run removing .only
The issue was introduced with one of the recent changes related to local mode cleanup.

Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-06-27 14:56:54 +03:00
064d082836 v9.18.0 v9.18.0 2019-06-26 18:27:19 +03:00
32082d5ecc Merge pull request #1012 from balena-io/roman/local-mode-cleanup
Clean up local mode engine objects using snapshots
2019-06-26 18:15:08 +03:00