config: Add developmentMode to schema

Add a `developmentMode` configuration variable to the schema. Do not expose
this on the device target state until local key-based authentication is
sorted.

Relates-to: https://jel.ly.fish/e9525e9e-aa74-478c-b931-52951c679f78
Change-type: patch
Signed-off-by: Alex Gonzalez <alexg@balena.io>
This commit is contained in:
Alex Gonzalez 2021-08-04 10:42:38 +00:00
parent eeefc3abdd
commit 4ad7a3ae91
2 changed files with 9 additions and 0 deletions

View File

@ -170,6 +170,10 @@ export const schemaTypes = {
type: PermissiveBoolean,
default: true,
},
developmentMode: {
type: PermissiveBoolean,
default: false,
},
// Function schema types
// The type should be the value that the promise resolves

View File

@ -79,6 +79,11 @@ export const schema = {
mutable: false,
removeIfNull: false,
},
developmentMode: {
source: 'config.json',
mutable: true,
removeIfNull: false,
},
name: {
source: 'db',