-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add missing Install attributes #111
Conversation
schema/install_schema.go
Outdated
} | ||
|
||
type ElementalPartitions struct { | ||
BIOS *Partition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bios and Efi should not be here, they are not configurable by user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Mauro Morales <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #111 +/- ##
=======================================
Coverage 53.18% 53.18%
=======================================
Files 16 16
Lines 1115 1115
=======================================
Hits 593 593
Misses 424 424
Partials 98 98 ☔ View full report in Codecov by Sentry. |
schema/install_schema.go
Outdated
} | ||
|
||
// ImageSource represents the source from where an image is created for easy identification | ||
type ImageSource struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this here? I dont think it will work, i.e. you cannot override the Source by a yaml directly like this, you need to override the install.Source
like here:
func generateInstallConfForCLIArgs(sourceImageURL string) string {
if sourceImageURL == "" {
return ""
}
return fmt.Sprintf(`install:
source: %s
`, sourceImageURL)
}
then that yaml gets ingested and converted to an actual ImageSource which is for internal use mainly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so what should source be? just a string? or it shouldn't be there at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made it a string, now, let me know if it's not correct
Signed-off-by: Mauro Morales <[email protected]>
Label string `json:"label,omitempty" mapstructure:"label"` | ||
Size uint `json:"size,omitempty" mapstructure:"size"` | ||
FS string `json:"fs,omitempty" mapstructure:"fs"` | ||
Source string `json:"uri,omitempty" mapstructure:"uri"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea to be honest. The processing of this is done on the spec generation I think so a string should be ok I guess?
Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Mauro Morales <[email protected]>
) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/kairos-io/kairos-sdk](https://togithub.com/kairos-io/kairos-sdk) | `v0.1.2` -> `v0.1.3` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fkairos-io%2fkairos-sdk/v0.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fkairos-io%2fkairos-sdk/v0.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fkairos-io%2fkairos-sdk/v0.1.2/v0.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fkairos-io%2fkairos-sdk/v0.1.2/v0.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kairos-io/kairos-sdk (github.com/kairos-io/kairos-sdk)</summary> ### [`v0.1.3`](https://togithub.com/kairos-io/kairos-sdk/releases/tag/v0.1.3) [Compare Source](https://togithub.com/kairos-io/kairos-sdk/compare/v0.1.2...v0.1.3) #### What's Changed - Show encrypted parts in state by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-sdk/pull/108](https://togithub.com/kairos-io/kairos-sdk/pull/108) - Add missing Install attributes by [@​mauromorales](https://togithub.com/mauromorales) in [https://github.com/kairos-io/kairos-sdk/pull/111](https://togithub.com/kairos-io/kairos-sdk/pull/111) **Full Changelog**: kairos-io/kairos-sdk@v0.1.2...v0.1.3 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 11pm every weekday,before 7am every weekday,every weekend" in timezone Europe/Brussels, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/kairos-io/provider-kairos). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMzEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM0MC4xMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
relates to #2492