-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
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>
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 |
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 only run go mod tidy
. I don't know why this happens 🤷
@@ -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\"]"` |
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.
It doesn't seem to work with escaped slashes \/
but it works like this so... 🤷
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
E.g. /dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0
Part of kairos-io/kairos#2906