Commit Graph

2643 Commits

Author SHA1 Message Date
Cameron Diver
48bccd34db Add journald format flag
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-08-21 15:02:05 +01:00
Cameron Diver
2d924b83fc Update documentation and explicitly unpipe journald stream
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-08-21 15:02:05 +01:00
Resin CI
5121767766 v10.2.7 2019-08-21 16:31:22 +03:00
CameronDiver
aea9362abd
Merge pull request #1069 from balena-io/fix-step-name
Correctly generate network or volume creation steps
2019-08-21 14:29:33 +01:00
Cameron Diver
ded828da9a Correctly generate network or volume creation steps
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-08-21 10:48:38 +01:00
Resin CI
9a823475b5 v10.2.6 2019-08-19 23:04:25 +03:00
CameronDiver
408ddaa477
Merge pull request #1066 from balena-io/extra-step-engine
Extract composition step engine to typescript module
2019-08-19 21:03:03 +01:00
Cameron Diver
4f31b18670
Extract composition step work out to typescript compose module
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-08-19 17:00:39 +01:00
Cameron Diver
bd022df8bd
Add default exports for Volume and Network modules
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-08-19 17:00:38 +01:00
Cameron Diver
55ee5a468f
Remove unused local mode parameter from images.getAvailable
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-08-19 17:00:38 +01:00
Resin CI
384e0e37bc v10.2.5 2019-08-19 19:00:24 +03:00
CameronDiver
b9800ae3d9
Merge pull request #1067 from balena-io/selective-xor-compare
Only consider certain array fields without order
2019-08-19 16:58:54 +01:00
Cameron Diver
76de276b92
Only consider certain array fields without order
Various fields returned from the docker daemon don't retain order (for
example the volumes field). We now only select certain array values to
compare taking order into account.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-08-19 14:55:06 +01:00
Resin CI
b20e5c567d v10.2.4 2019-08-16 11:20:02 +03:00
CameronDiver
37430124ca
Merge pull request #1063 from balena-io/1060-list-comp
Take order into account when comparing service config arrays
2019-08-16 09:18:13 +01:00
Cameron Diver
86e8a85640
Take order into account when comparing service config arrays
Change-type: patch
Closes: #1060
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-08-15 17:07:22 +01:00
Resin CI
587e7fa859 v10.2.3 2019-08-15 17:24:43 +03:00
xginn8
aa98899a65
Merge pull request #1061 from balena-io/pcarranzav-codeowners
meta: remove pcarranzav as codeowner
2019-08-15 16:21:18 +02:00
Matthew McGinn
c3fe0f4d37
meta: remove pcarranzav as codeowner
Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
2019-08-14 19:57:04 +02:00
Resin CI
30da419033 v10.2.2 2019-08-09 20:57:49 +03:00
xginn8
4b42ebdedd
Merge pull request #1056 from balena-io/docs-typo
docs: fix up typo "sucess" -> "success"
2019-08-09 19:56:03 +02:00
Matthew McGinn
8c9f974b07 docs: fix up typo "sucess" -> "success"
Related to https://github.com/balena-io/docs/pull/1065

Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
2019-08-09 16:36:57 +02:00
Resin CI
0cb1d454e8 v10.2.1 2019-08-09 16:15:59 +03:00
CameronDiver
54bb3ea909
Merge pull request #1058 from balena-io/fix-journal-docs
Fix version documentation for journald endpoint
2019-08-09 14:13:58 +01:00
Cameron Diver
1794b334a0
Fix version documentation for journald endpoint
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-08-09 12:48:06 +01:00
Resin CI
9500c3469b v10.2.0 2019-08-09 14:24:43 +03:00
CameronDiver
22d737ef77
Merge pull request #1013 from balena-io/1003-journald-logs
Add an endpoint and module for reading journald logs
2019-08-09 12:22:41 +01:00
Cameron Diver
43cbf7dbba
Add an endpoint and module for reading journald logs
Change-type: minor
Closes: #1003
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-08-09 11:08:29 +01:00
Resin CI
fa26988ca6 v10.1.5 2019-08-05 12:26:43 +03:00
CameronDiver
9241fca512
Merge pull request #1048 from balena-io/fix-call-stack-on-target-state
Avoid cloneDeep when copying target state
2019-08-05 10:25:16 +01:00
Cameron Diver
c62f4afe8d
api: Avoid cloneDeep when copying target state.
This can cause issues where the stack is exhausted
on large applications.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
Signed-off-by: Heds Simons <heds@balena.io>
2019-07-25 15:23:18 +01:00
Resin CI
d6d5fecf28 v10.1.4 2019-07-25 16:19:37 +03:00
Roman Mazur
5aa9f31c3e
Merge pull request #1038 from balena-io/roman/suicide-prevention
Prevent supervisor from deleting itself
2019-07-25 16:17:41 +03:00
Roman Mazur
4688524e45
Filter both null and omitted values
The docker daemon can sometimes return null for various fields,
or omit the field altogether. The best thing to do with using
the docker api is to always use == null to cover both instances.

Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-07-25 13:03:04 +03:00
Roman Mazur
4b56022d93
Use typed error to report inspection problems
This will throw a typed error in case when supervisor cannot inspect
its own container.

Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-07-25 13:03:03 +03:00
Roman Mazur
4846acb25e
Prevent supervisor from deleting itself
With recent changes to local mode behavior, supervisor removes all engine objects
that were not present before entering local mode.
With this change, supervisor also detects its own resources and does not delete them
if it was updated during local mode operations.

Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
2019-07-25 13:02:57 +03:00
Resin CI
36f2b36136 v10.1.3 2019-07-25 11:42:36 +03:00
xginn8
fa79c175c9
Merge pull request #1053 from balena-io/appid-var
docs: update APPID to BALENA_APP_ID as exposed from the env
2019-07-25 09:40:46 +01:00
Matthew McGinn
f2bb8a768e docs: update APPID to BALENA_APP_ID as exposed from the env
Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
2019-07-24 23:40:31 +01:00
Resin CI
7c18ff2901 v10.1.2 2019-07-24 18:21:15 +03:00
Rich Bayliss
61b6d9fe20
Merge pull request #1051 from balena-io/network-check-if-unmanaged
api: Perform network checks if device is unmanaged
2019-07-24 16:19:36 +01:00
Rich Bayliss
f9aa4681fa
api: Perform network checks if device is unmanaged
Without these checks the API GET /v1/device doesn't return a
value for `ip_address`.

Change-type: patch
Signed-off-by: Rich Bayliss <rich@balena.io>
2019-07-24 15:40:53 +01:00
Resin CI
de8a5984a9 v10.1.1 2019-07-24 15:39:31 +03:00
CameronDiver
f01e75a015
Merge pull request #1050 from balena-io/fix-sync-debug
Fix invocation of livepush with sync-debug
2019-07-24 05:37:26 -07:00
Cameron Diver
37ea6a9283 Fix invocation of livepush with sync-debug
Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-23 15:00:39 +01:00
Resin CI
e7652fec52 v10.1.0 2019-07-23 16:35:28 +03:00
CameronDiver
5e73d4d9a3
Merge pull request #1036 from balena-io/851-service-network-mode
Support network_modes of service:<servicename>
2019-07-23 06:33:48 -07:00
Cameron Diver
c109a24874 Support network_modes of service:<servicename>
That way that this is performed is by first adding a depends_on entry
for the target service if it appears in a network mode. Then when we
generate the docker container for this service, we use the containerId
of the target container and replace the network_mode with
`container:<id>`.

When comparing state, we check that the containerId still points to the
contianerId of the target container, and in this way we ensure that
when a network mode target container changes, we change the dependent
container too.

Change-type: minor
Closes: #851
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-23 13:41:19 +01:00
Resin CI
7afde2fc0e v10.0.5 2019-07-22 18:32:38 +03:00
CameronDiver
4922b7154d
Merge pull request #1047 from balena-io/1037-restart-on-no-network-preload
fix: Always reboot when applying boot config
2019-07-22 08:30:43 -07:00