Commit Graph

25 Commits

Author SHA1 Message Date
Vincent Bernat
0f72ffd676 cmd: automatic restart of orchestrator on configuration change 2025-09-19 21:53:01 +02:00
Vincent Bernat
31b6591e0e build: update revive
And remove some unused variables.
2025-09-09 07:39:00 +02:00
Vincent Bernat
e2f1df9add tests: replace godebug by go-cmp for structure diffs
go-cmp is stricter and allow to catch more problems. Moreover, the
output is a bit nicer.
2025-08-23 16:03:09 +02:00
Vincent Bernat
18beb310ee chore: replace interface{} with any 2025-07-29 07:42:49 +02:00
dependabot[bot]
17d9a6b6de build: bump github.com/gin-gonic/gin from 1.9.1 to 1.10.0
Also update YAML MIME type.
2024-05-21 07:54:55 +02:00
Vincent Bernat
ee0075cdef cmd: test we can override a non-0 value with 0 2023-11-28 06:43:58 +01:00
Vincent Bernat
9db516e424 build: don't use ioutil
This is deprecated.
2023-11-12 22:58:41 +01:00
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