This commit is contained in:
flowzone-app[bot] 2024-07-04 20:25:40 +00:00 committed by GitHub
parent da807e45f6
commit 7c340f9675
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 75 additions and 6 deletions

View File

@ -1,3 +1,66 @@
- commits:
- subject: Refactor host-config to be its own module
hash: 53f5641ef1cd2e5374f55a50a601fb80d4872511
body: >
The host-config module exposes the following interfaces: get,
patch, and parse.
`get` gets host configuration such as redsocks proxy configuration
and hostname and returns it in an object of type HostConfiguration.
`patch` takes an object of type HostConfiguration or
LegacyHostConfiguration
and updates the hostname and redsocks proxy configuration, optionally
forcing the patch through update locks.
`parse` takes a user input of unknown type and parses it into type
HostConfiguration or LegacyHostConfiguration for patching, erroring if
parse was unsuccessful.
LegacyHostConfiguration is a looser typing of the user input which does
not validate values of the five known proxy fields of type, ip, port,
username, and password. We should stop supporting it in the next
major Supervisor API release.
footer:
Change-type: minor
change-type: minor
Signed-off-by: Christina Ying Wang <christina@balena.io>
signed-off-by: Christina Ying Wang <christina@balena.io>
author: Christina Ying Wang
nested: []
- subject: Add HostConfig.parse method
hash: be986a62a5835116d58903fac9ffcf5c7d1fd0e1
body: |
Parses input from PATCH /v1/device/host-config into either
type HostConfiguration, or if LegacyHostConfiguration if
input is of an acceptable shape (for backwards compatibility).
Once input has been determined to be of type HostConfiguration,
we can easily extract ProxyConfig from the object for patching,
stringifying, and writing to redsocks.conf.
footer:
Change-type: minor
change-type: minor
Signed-off-by: Christina Ying Wang <christina@balena.io>
signed-off-by: Christina Ying Wang <christina@balena.io>
author: Christina Ying Wang
nested: []
version: 16.4.0
title: ""
date: 2024-07-04T20:25:36.036Z
- commits:
- subject: Fix engine deadlock on network+service change
hash: ede27b63cecc2a9ae3139a905d9c6ab32418a72b

View File

@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).
# v16.4.0
## (2024-07-04)
* Refactor host-config to be its own module [Christina Ying Wang]
* Add HostConfig.parse method [Christina Ying Wang]
# v16.3.17
## (2024-06-25)

View File

@ -1 +1 @@
16.3.17
16.4.0

View File

@ -2,6 +2,6 @@ name: balena-supervisor
description: 'Balena Supervisor: balena''s agent on devices.'
joinable: false
type: sw.application
version: 16.3.17
version: 16.4.0
provides:
- slug: sw.compose.long-volume-syntax

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "balena-supervisor",
"version": "16.3.17",
"version": "16.4.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "balena-supervisor",
"version": "16.3.17",
"version": "16.4.0",
"license": "Apache-2.0",
"dependencies": {
"@balena/systemd": "^0.5.0",

View File

@ -1,7 +1,7 @@
{
"name": "balena-supervisor",
"description": "This is balena's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as the balena API informs it to.",
"version": "16.3.17",
"version": "16.4.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
@ -135,6 +135,6 @@
"yargs": "^17.7.2"
},
"versionist": {
"publishedAt": "2024-06-25T01:03:27.276Z"
"publishedAt": "2024-07-04T20:25:36.608Z"
}
}