Skip to content

Commit

Permalink
v16.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
flowzone-app[bot] authored Jul 4, 2024
1 parent da807e4 commit 7c340f9
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 6 deletions.
63 changes: 63 additions & 0 deletions .versionbot/CHANGELOG.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.3.17
16.4.0
2 changes: 1 addition & 1 deletion balena.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -135,6 +135,6 @@
"yargs": "^17.7.2"
},
"versionist": {
"publishedAt": "2024-06-25T01:03:27.276Z"
"publishedAt": "2024-07-04T20:25:36.608Z"
}
}

0 comments on commit 7c340f9

Please sign in to comment.