Commit Graph

18 Commits

Author SHA1 Message Date
Vincent Bernat
28bfd84b3f cmd: change prefix for environment variables to AKVORADO_CFG
Otherwise, this may clash with automatically set environment variables
by various solutions, including Kubernetes.
2023-07-29 09:13:14 +02:00
Vincent Bernat
895c34fa82 cmd: accept an !include tag for YAML files 2023-02-13 23:32:45 +01:00
Vincent Bernat
cdbae1c643 Revert "cmd: accept an !include tag for YAML files"
This reverts commit b8698bc060. This
change is not complete, it is missing adaptations in docker-compose.yml.
2023-02-12 14:40:56 +01:00
Vincent Bernat
a912da7fa1 build: use gofumpt
Undecided if we need to use it. I think it's nice.
2023-02-11 10:03:45 +01:00
Vincent Bernat
b8698bc060 cmd: accept an !include tag for YAML files 2023-01-29 14:48:57 +01:00
Vincent Bernat
9884844adf cmd: switch to gopkg.in/yaml.v3 for YAML parsing 2023-01-29 13:09:22 +01:00
Vincent Bernat
985e678e42 chore: replace map[string]interface{} by gin.H 2022-08-16 19:43:28 +02:00
Vincent Bernat
14fcc32cd2 cmd: do not merge user-provided lists with defaults
mapstructure is not zeroing stuff to allow incremental parsing of
configuration. This is fine for most structures, but when we get a
list, we don't want to merge the list provided by the user and the
default value. In this case, we zero out the list.
2022-07-21 19:10:39 +02:00
Vincent Bernat
15fc92bfe3 config: handle empty configurations 2022-07-08 09:17:10 +02:00
Vincent Bernat
22eab774a4 cmd: change how default configuration values are built
For the orchestrator, we need to build default values for slice of
configurations. We introduce a Reset() method that will be called by
mapstructure.
2022-07-07 20:55:33 +02:00
Vincent Bernat
7c81bc4759 cmd: ignore keys starting with dot in configuration
This enables to use YAML anchors.
2022-07-06 16:12:30 +02:00
Vincent Bernat
6121aaea15 config: use a validator for better configuration validation 2022-06-30 01:23:29 +02:00
Vincent Bernat
8be1bca4fd license: AGPL-3.0-only
```
git ls-files \*.js \*.go \
  | xargs sed -i '1i // SPDX-FileCopyrightText: 2022 Free Mobile\n// SPDX-License-Identifier: AGPL-3.0-only\n'
git ls-files \*.vue \
  | xargs sed -i '1i <!-- SPDX-FileCopyrightText: 2022 Free Mobile -->\n<!-- SPDX-License-Identifier: AGPL-3.0-only -->\n'
```
2022-06-29 11:42:28 +02:00
Vincent Bernat
baac495b9c orchestrator: provide configuration for other components as YAML
JSON does not allow to marshal fields as embedded (like YAML "inline" tag).
2022-06-22 10:50:24 +02:00
Vincent Bernat
56e30e478a cmd: accept URL as a configuration file 2022-04-10 15:14:13 +02:00
Vincent Bernat
cf77be32e0 kafka: inline configuration
Otherwise, this is a bit odd to have this special "connect" substructure.
2022-04-09 13:03:39 +02:00
Vincent Bernat
6d2d51025e cmd: test configuration handling without using one service 2022-04-02 10:14:45 +02:00
Vincent Bernat
1dc253764d global: split Akvorado into 3 services 2022-04-01 20:21:53 +02:00