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

Fix install.device schema to allow all devices #521

Merged
merged 3 commits into from
Nov 8, 2024
Merged

Conversation

jimmykarily
Copy link
Contributor

E.g. /dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0

Part of kairos-io/kairos#2906

E.g. /dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0

Part of kairos-io/kairos#2906

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@jimmykarily jimmykarily self-assigned this Nov 7, 2024
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@@ -4,7 +4,7 @@ go 1.23.1

require (
github.com/avast/retry-go v2.7.0+incompatible
github.com/containerd/containerd/v2 v2.0.0
github.com/containerd/containerd v1.7.23
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only run go mod tidy . I don't know why this happens 🤷

@jimmykarily jimmykarily requested a review from a team November 7, 2024 06:49
@@ -11,7 +11,7 @@ type InstallSchema struct {
BindMounts []string `json:"bind_mounts,omitempty"`
Bundles []BundleSchema `json:"bundles,omitempty" description:"Add bundles in runtime"`
NoFormat bool `json:"no_format,omitempty"`
Device string `json:"device,omitempty" pattern:"^(auto|/|(/[a-zA-Z0-9_-]+)+)$" description:"Device for automated installs" examples:"[\"auto\",\"/dev/sda\"]"`
Device string `json:"device,omitempty" pattern:"^(auto|/dev/.+)$" description:"Device for automated installs" examples:"[\"auto\",\"/dev/sda\"]"`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't seem to work with escaped slashes \/ but it works like this so... 🤷

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.11%. Comparing base (259f6af) to head (8dc50fe).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #521   +/-   ##
=======================================
  Coverage   53.11%   53.11%           
=======================================
  Files          19       19           
  Lines        1973     1973           
=======================================
  Hits         1048     1048           
  Misses        795      795           
  Partials      130      130           

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

@jimmykarily jimmykarily merged commit 6a23bb6 into main Nov 8, 2024
13 checks passed
@jimmykarily jimmykarily deleted the 2906-fix-schema branch November 8, 2024 06:03
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.

2 participants