Skip to content
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

Don't parse userdata and userdata.yaml #58

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

jimmykarily
Copy link
Contributor

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

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]>
@jimmykarily jimmykarily requested a review from a team November 23, 2023 14:24
@jimmykarily jimmykarily self-assigned this Nov 23, 2023
Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (196f133) 46.59% compared to head (3ccf69f) 46.59%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #58   +/-   ##
=======================================
  Coverage   46.59%   46.59%           
=======================================
  Files          12       12           
  Lines         880      880           
=======================================
  Hits          410      410           
  Misses        406      406           
  Partials       64       64           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Itxaka
Copy link
Member

Itxaka commented Nov 23, 2023

good catch!

@jimmykarily jimmykarily merged commit f73090d into main Nov 23, 2023
4 checks passed
@jimmykarily jimmykarily deleted the 2019-dont-parse-userdata-twice branch November 23, 2023 14:37
jimmykarily added a commit to kairos-io/kairos-agent that referenced this pull request Nov 23, 2023
bump kairos-sdk to consume this: kairos-io/kairos-sdk#58

Signed-off-by: Dimitris Karakasilis <[email protected]>
jimmykarily added a commit to kairos-io/kairos that referenced this pull request Nov 24, 2023
fixed here: kairos-io/kairos-sdk#58

This commit makes sure we test this for regressions and pulls the fix in.

Signed-off-by: Dimitris Karakasilis <[email protected]>
jimmykarily added a commit to kairos-io/kairos that referenced this pull request Nov 24, 2023
fixed here: kairos-io/kairos-sdk#58

This commit makes sure we test this for regressions and pulls the fix in.

Signed-off-by: Dimitris Karakasilis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

90_custom.yaml duplicate entries
2 participants