Commit Graph

4 Commits

Author SHA1 Message Date
Itxaka
8f54324703 Allow passing readers to collector (#52) 2023-09-26 09:32:53 +02:00
Itxaka
699aa6203c Read the first ten lines of a config to check for headers (#51)
There could be comments before the cloud-config header or jinja
expressions as we found already[0] so our current header check its a bit
strict.

This patch makes it so er read the first ten lines of the config source,
check for # at the start and then check for the headers as we did
before, so we are a bit more letinent in case the cloud-config header is
not the first thing in the file

Signed-off-by: Itxaka <itxaka@kairos.io>
2023-09-15 20:59:31 +02:00
Mauro Morales
396c5553ca 🐛 Wrong deep merge when array contains maps (#38)
* Do not try to smart merge arrays, but just append them

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Fix tests

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Rewording for tests

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Rename function to match what is doing after refactoring

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-08-01 10:08:21 +02:00
Itxaka
dcf352a009 Bring collector into the sdk (#31) 2023-06-14 13:01:06 +02:00