Skip to content

Commit

Permalink
Merge pull request #576 from diconico07/use-device-specs
Browse files Browse the repository at this point in the history
udev: Use device specs instead of mounts
  • Loading branch information
yujinkim-msft authored Apr 12, 2023
2 parents e342352 + f0b45f8 commit b62cf5e
Show file tree
Hide file tree
Showing 18 changed files with 38 additions and 38 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion agent/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "agent"
version = "0.10.1"
version = "0.10.2"
authors = ["Kate Goldenring <[email protected]>", "<[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion controller/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "controller"
version = "0.10.1"
version = "0.10.2"
authors = ["<[email protected]>", "<[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
4 changes: 2 additions & 2 deletions deployment/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.10.1
version: 0.10.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.10.1
appVersion: 0.10.2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "debug-echo-discovery-handler"
version = "0.10.1"
version = "0.10.2"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "onvif-discovery-handler"
version = "0.10.1"
version = "0.10.2"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opcua-discovery-handler"
version = "0.10.1"
version = "0.10.2"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "udev-discovery-handler"
version = "0.10.1"
version = "0.10.2"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/debug-echo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-debug-echo"
version = "0.10.1"
version = "0.10.2"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/onvif/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-onvif"
version = "0.10.1"
version = "0.10.2"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/opcua/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-opcua"
version = "0.10.1"
version = "0.10.2"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/udev/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-udev"
version = "0.10.1"
version = "0.10.2"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
14 changes: 7 additions & 7 deletions discovery-handlers/udev/src/discovery_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use super::{
use akri_discovery_utils::discovery::{
discovery_handler::{deserialize_discovery_details, DISCOVERED_DEVICES_CHANNEL_CAPACITY},
v0::{
discovery_handler_server::DiscoveryHandler, Device, DiscoverRequest, DiscoverResponse,
Mount,
discovery_handler_server::DiscoveryHandler, Device, DeviceSpec, DiscoverRequest,
DiscoverResponse,
},
DiscoverStream,
};
Expand Down Expand Up @@ -104,7 +104,7 @@ impl DiscoveryHandler for DiscoveryHandlerImpl {
.into_iter()
.map(|(id, paths)| {
let mut properties = HashMap::new();
let mut mounts = Vec::new();
let mut device_specs = Vec::new();
for (i, (_, node)) in paths.into_iter().enumerate() {
let property_suffix = discovery_handler_config
.group_recursive
Expand All @@ -115,10 +115,10 @@ impl DiscoveryHandler for DiscoveryHandlerImpl {
super::UDEV_DEVNODE_LABEL_ID.to_string() + &property_suffix,
devnode.clone(),
);
mounts.push(Mount {
device_specs.push(DeviceSpec {
container_path: devnode.clone(),
host_path: devnode,
read_only: true,
permissions: "rwm".to_string(),
})
}
}
Expand All @@ -130,8 +130,8 @@ impl DiscoveryHandler for DiscoveryHandlerImpl {
Device {
id,
properties,
mounts,
device_specs: Vec::default(),
mounts: Vec::default(),
device_specs,
}
})
.collect::<Vec<Device>>();
Expand Down
2 changes: 1 addition & 1 deletion discovery-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-discovery-utils"
version = "0.10.1"
version = "0.10.2"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion samples/brokers/udev-video-broker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "udev-video-broker"
version = "0.10.1"
version = "0.10.2"
authors = ["Kate Goldenring <[email protected]>", "<[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion shared/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-shared"
version = "0.10.1"
version = "0.10.2"
authors = ["<[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.1
0.10.2
2 changes: 1 addition & 1 deletion webhooks/validating/configuration/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "webhook-configuration"
version = "0.10.1"
version = "0.10.2"
authors = ["DazWilkin <[email protected]>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down

0 comments on commit b62cf5e

Please sign in to comment.