-
Notifications
You must be signed in to change notification settings - Fork 3
Add generic devices to WorkloadStatus #32
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -423,6 +423,7 @@ message WorkloadStatus { | |
| WorkloadMountStatus mount_status = 5; | ||
| google.protobuf.Timestamp created_at = 6; | ||
| WorkloadPciDeviceStatus pci_device_status = 7; | ||
| WorkloadDeviceStatus device_status = 8; | ||
| } | ||
|
|
||
| message WorkloadBlockDeviceInfo { | ||
|
|
@@ -433,6 +434,10 @@ message WorkloadBlockDeviceInfo { | |
| bool loop_dev = 5; | ||
| } | ||
|
|
||
| message WorkloadFsDeviceInfo { | ||
| uint64 device_id = 1; | ||
| } | ||
|
|
||
| message WorkloadPciDeviceInfo { | ||
| string location = 1; | ||
| } | ||
|
|
@@ -445,11 +450,30 @@ message WorkloadPciDeviceStatus { | |
| repeated WorkloadPciDeviceInfo devices = 1; | ||
| } | ||
|
|
||
| message WorkloadDeviceInfo { | ||
| oneof info { | ||
| WorkloadBlockDeviceInfo block = 1; | ||
| WorkloadFsDeviceInfo fs = 2; | ||
| WorkloadPciDeviceInfo pci = 3; | ||
| } | ||
| } | ||
|
|
||
| message WorkloadDeviceStatus { | ||
| repeated WorkloadDeviceInfo devices = 1; | ||
| } | ||
|
|
||
| enum WorkloadMountScopeType { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's still not clear to me why we have a non-workload scoping policy enum on a workload-scoped type, or why it is necessary that we leak this internal mount policy stuff into the public control API? I do not think we actually need this policy scope enum in the public control API.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
So the Now, this is not the only info that lives in the public control API and that's relevant only internally. This approach has been used in the past as well, e.g. |
||
| WORKLOAD_MOUNT_SCOPE_TYPE_UNKNOWN = 0; | ||
| WORKLOAD_MOUNT_SCOPE_TYPE_ZONE = 1; | ||
| WORKLOAD_MOUNT_SCOPE_TYPE_WORKLOAD = 2; | ||
| } | ||
|
|
||
| message WorkloadMountInfo { | ||
| string tag = 2; | ||
| string host_path = 3; | ||
| string target_path = 5; | ||
| bool read_only = 6; | ||
| WorkloadMountScopeType scope = 7; | ||
| reserved 1, 4; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
How does this conceptually differ from the existing
WorkloadBlockDeviceStatusWorkloadPciDeviceStatusWorkloadMountStatus?
Do we need all three? If we do, why?
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.
For the long term, it should replace
Workload{Block,Pci}DeviceStatus. RegardingWorkloadMountStatusthat's a different (open) discussion given that it's related to filesystems and not to devices.