Cameron Diver
c9c0e650cb
Support matching on device type within contracts
...
Closes : #1191
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-04-09 10:45:07 +01:00
Pagan Gazzard
a59af6abe8
Workaround a circular dependency
...
Change-type: patch
2020-04-08 17:40:39 +01:00
Pagan Gazzard
a2ec35456b
Convert application-manager.coffee to javascript
...
Change-type: patch
2020-04-08 12:15:06 +01:00
Cameron Diver
0a429f60a5
Add newTargetState event and use it for backup loading
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-04-07 14:50:34 +01:00
Cameron Diver
dda6270219
Don't wrap UpdatesLockedErrors with a detailed error
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-04-07 13:12:24 +01:00
Cameron Diver
0950b66c52
Allow spaces in volume definitions
...
Closes : #1247
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-04-07 10:35:34 +01:00
Pagan Gazzard
81927d7861
Update to balena-register-device 6.0.1
...
Change-type: patch
2020-04-06 17:45:03 +01:00
Pagan Gazzard
98e956831a
Convert test/18-compose-network.coffee to javascript
...
Change-type: patch
2020-04-02 14:25:24 +01:00
Pagan Gazzard
dcb01cb863
Convert test/16-ports.spec.coffee to typescript
...
Change-type: patch
2020-04-02 14:25:21 +01:00
Cameron Diver
3c59944ce1
Pass in deviceId when fetching device tags
...
Change-type: patch
Closes : #1237
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-03-31 12:44:31 +01:00
Cameron Diver
3af89cd13f
Add BALENA_DEVICE_ARCH environment variable for containers
...
Closes : #1232
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-03-30 16:40:02 +01:00
Cameron Diver
6b827a3f57
Don't throw an error when getting an unhealthy state
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-03-30 10:07:50 +01:00
Pagan Gazzard
15fca80d2d
Convert src/device-api/common.coffee to javascript
...
Change-type: patch
2020-03-28 13:38:34 +00:00
Pagan Gazzard
6ab69e1a69
Switch to mz for the proxyvisor
...
Change-type: patch
2020-03-27 17:50:30 +00:00
Pagan Gazzard
c1e5b98ae5
Convert proxyvisor to javascript
...
Change-type: patch
2020-03-27 17:49:01 +00:00
Pagan Gazzard
686f72ecf7
Remove unnecessary code from application-manager
...
Change-type: patch
2020-03-26 23:50:53 +00:00
Pagan Gazzard
2a50a4262d
Improve types used by application-manager
2020-03-26 23:40:16 +00:00
Pagan Gazzard
968e2ba0fb
Switch to a named export for application-manager
...
Change-type: patch
2020-03-26 23:39:21 +00:00
Pagan Gazzard
56c13fb963
Convert device-api/v1 to javascript
...
Change-type: patch
2020-03-25 12:16:53 +00:00
Pagan Gazzard
9c3295c912
Add type checking for javascript files
...
Change-type: patch
2020-03-24 16:37:28 +00:00
Cameron Diver
f2c606e1f9
Update dependencies
...
We also pin livepush in place while
https://github.com/balena-io-modules/livepush/issues/67
is fixed.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-03-24 14:52:22 +00:00
Pagan Gazzard
81966446d9
Update to balena-lint and enable javascript linting
...
Change-type: patch
2020-03-24 09:28:12 +00:00
Matthew McGinn
ab7e8b5514
logging: fix up some typos
...
Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
2020-03-16 15:28:50 -04:00
Pagan Gazzard
6e3db3bd60
Update dependencies
...
Change-type: patch
2020-03-13 17:18:05 +00:00
Cameron Diver
5c50f656c3
Allow semver comparison on l4t versions in contracts
...
We add an implicit .0 to the end of l4t versions which do not fulfill
semver, which allows us to always match using comparison operators, such
as < and <=.
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-03-06 15:54:04 +00:00
Cameron Diver
7d47661928
Allow l4t versions with three numbers as well as two
...
Closes : #1210
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-03-06 10:27:43 +00:00
Rich Bayliss
e0d2bdfaa9
config: Support loading SSDT via ConfigFS
...
Change-type: patch
Signed-off-by: Rich Bayliss <rich@balena.io>
2020-03-05 13:30:06 +00:00
Cameron Diver
cf76875f64
Improve dependent and preload typings
...
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-02-25 14:50:21 +07:00
Cameron Diver
c21da8f3db
Convert device-state module to typescript
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-02-25 14:50:21 +07:00
Cameron Diver
2309442555
Improve application-manager typings
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-02-25 14:50:20 +07:00
Cameron Diver
e161888516
Improve and extend internal typings
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-02-25 14:50:20 +07:00
Ivan
b5772740ae
Add a containerId request parameter for journal-logs api endpoint, and pass it along to journalctl process options.
...
Change-Type: minor
Signed-off-by: Ivan <ivanign04.alt@gmail.com>
2020-02-22 16:42:38 -07:00
Cameron Diver
89a9d85e87
Add procfs label
...
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-02-13 11:00:34 +07:00
Cameron Diver
947deb3cc6
Add a sysfs feature label
...
The new label `io.balena.features.sysfs` will mount the host /sys into
the container at /sys.
Relates to issue: #743
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-02-13 11:00:34 +07:00
Cameron Diver
7dcb4fa887
Clean up the feature label function
...
Bring the labels into a more declarative format and run through them to
apply the various labels and env vars.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-02-13 11:00:33 +07:00
Cameron Diver
a27ce4f1dc
Dont error on a target state with multiple apps
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-02-10 12:06:12 +07:00
Rich Bayliss
fe5fd2b7ef
bug: Delay sending logs until the device is provisioned
...
Connects-to: #1189
Change-type: patch
Signed-off-by: Rich Bayliss <rich@balena.io>
2020-02-06 10:21:27 +00:00
Cameron Diver
3ff3bce605
Allow getting the target state when not in local mode
...
Change-type: patch
Closes : #1176
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-01-30 11:24:59 +00:00
Pagan Gazzard
027701297b
Update knex types
...
Change-type: patch
2020-01-17 13:59:24 +00:00
Pagan Gazzard
1a393dbb19
Update lodash types
...
Change-type: patch
2020-01-17 13:51:55 +00:00
Pagan Gazzard
0ef9cc189b
Update types and fix issue with treating string as a number
...
Change-type: patch
2020-01-17 13:06:27 +00:00
Cameron Diver
6e7a190ff0
❌ Remove unnecessary awaits
...
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-01-16 11:14:39 +00:00
Cameron Diver
53b6e8f1bb
⌛ Increase minimum backoff delay and use poll interval as max
...
This change will start the minimum backoff from 15s (up from 500ms) and
will use the appUpdatePollInterval configuration variable as the max.
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-01-16 11:14:00 +00:00
Cameron Diver
426d8cd10a
Ensure that we always have the pi4 overlay assigned
...
Change-type: patch
Closes : #1171
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-01-08 17:06:19 +00:00
Cameron Diver
4b0f431f9b
Throttle state report patches to once per 10 seconds
...
Change-type: patch
Closes : #1158
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-12-19 12:32:38 +00:00
Cameron Diver
2d4ac24403
Report the correct error when we cannot remove a network
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-12-18 15:02:18 +00:00
Cameron Diver
8317a1843b
Always do a standard docker download on first pull
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-12-17 10:34:28 +00:00
Cameron Diver
4a74dffea9
Don't allow cross-app delta requests
...
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-12-16 12:58:09 +00:00
Cameron Diver
6db1f03411
fix: ⬇️ Force a regular pull when moving from v2 to v3 deltas
...
Change-type: patch
Fixes : #1072
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-12-16 10:42:46 +00:00
Roman Mazur
4895bb300a
Add steps info to applyState error message
...
This helps to debug/diagnose problems with state application faster.
Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-12-12 16:22:43 +02:00