-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
90_custom.yaml duplicate entries #2019
Comments
Sanity check, the datasource cdrom doesn't have duplicate entries:
|
Reproducer outside tests:
The above allows us to copy a customized kairos-agent and use that to start the installation with more logs etc. |
|
I found the guilty code: https://github.com/kairos-io/kairos-sdk/blob/f37fc75b5dfadcb8b17d91ca8b47066ec68df881/collector/collector.go#L258 We read every files that either contains There is no difference between I removed the |
yip writes both files with the same content when userdata passes validation (schema.Load): https://github.com/mudler/yip/blob/48147fae9dbcc91559cd590976816ca3f65a3bff/pkg/plugins/datasource.go#L246-L252 This means we shouldn't match `userdata` since the `userdata.yaml` will be used due to the extension. Fixes kairos-io/kairos#2019 Signed-off-by: Dimitris Karakasilis <[email protected]>
yip writes both files with the same content when userdata passes validation (schema.Load): https://github.com/mudler/yip/blob/48147fae9dbcc91559cd590976816ca3f65a3bff/pkg/plugins/datasource.go#L246-L252 This means we shouldn't match `userdata` since the `userdata.yaml` will be used due to the extension. Fixes kairos-io/kairos#2019 Signed-off-by: Dimitris Karakasilis <[email protected]>
New kairos-agent packages are building: https://github.com/kairos-io/packages/actions/runs/6971523152 |
Actually, since this was discovered through the bundles test, maybe it's a good place to test for regressions. E.g. test that the produced 90_custom.yaml configuration doesn't have duplicate entries. Let's do that too. |
Originally reported by Dave on Slack and now reproduced in the bundles test.
With the bundles tests config passed as a cdrom datasource (like the tests do), the
/oem
directory has various files:Notice the duplicate entries in the 90_custom.yaml file above
The text was updated successfully, but these errors were encountered: