Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
2cce410
added configuring of device mount permissions in udev discovery handl…
bindsi Jan 17, 2025
22793c1
incremented version
bindsi Jan 17, 2025
202a64c
formatting
bindsi Jan 17, 2025
e128934
fixed version
bindsi Jan 17, 2025
bd46a44
updated helm chart version
bindsi Jan 17, 2025
382d3b9
updated rust version
bindsi Jan 17, 2025
8802c88
updated rust version to 1.84
bindsi Jan 17, 2025
802f4b1
fixed default for permissions
bindsi Jan 17, 2025
9ebea3c
added default func for permissions
bindsi Jan 17, 2025
1939fbb
updated rust version to 1.81
bindsi Jan 18, 2025
7639e83
Update discovery-handlers/udev/src/discovery_handler.rs
bindsi Jan 22, 2025
dcfe306
added unit test and added dependencies
bindsi Jan 22, 2025
e8ffe39
test for permissions
bindsi Jan 22, 2025
462d649
removed unused var
bindsi Jan 22, 2025
c14d2fe
restructured test
bindsi Jan 22, 2025
be86a9c
fixed test
bindsi Jan 22, 2025
0eb45b7
added default permissions for lint files
bindsi Jan 22, 2025
444c209
signoff Signed-off-by: Marcel Bindseil <[email protected]>
bindsi Jan 22, 2025
b2540f4
removed panic
bindsi Jan 22, 2025
3bb1029
Merge branch 'project-akri:main' into main
bindsi Jan 26, 2025
e314f09
Merge branch 'project-akri:main' into main
bindsi Mar 6, 2025
31efd15
Add akri-udev dependency and implement udev discovery validation for …
bindsi Apr 16, 2025
998e7e7
Merge branch 'project-akri:main' into main
bindsi Apr 16, 2025
e22be26
Merge branch 'main' into feature/webhookcheck
bindsi Apr 16, 2025
5ba64f4
Bump version to 0.13.11 in Cargo.lock, Cargo.toml, and version.txt
bindsi Apr 16, 2025
8a4ac71
updated helm chart version
bindsi Apr 16, 2025
a246433
Fix return type of validate_udev_discovery_details function to includ…
bindsi Apr 16, 2025
3df361f
Refactor validate_udev_discovery_details function to improve error ha…
bindsi Apr 16, 2025
8f141bd
Return AdmissionResponse on error in validate_configuration function
bindsi Apr 16, 2025
4038e08
formatting
bindsi Apr 16, 2025
091e6c8
removed unused imports
bindsi Apr 16, 2025
49f4337
Fix validate_udev_discovery_details to return Ok for empty discovery …
bindsi Apr 16, 2025
399fe9c
Enhance validate_udev_discovery_details with improved error handling …
bindsi May 21, 2025
092148f
Refactor validate_udev_discovery_details to parse discovery details d…
bindsi May 21, 2025
28574e3
Add permissions field to udev discovery details in configuration files
bindsi May 21, 2025
8d1c549
Fix YAML syntax for udev rules and permissions in configuration files
bindsi May 21, 2025
0cd011e
Update udevDevNullConfiguration.yaml to include permissions for udev …
bindsi May 21, 2025
7de2148
no dependency
bindsi May 21, 2025
86b58f0
added stage to build artifacts
bindsi May 21, 2025
f9878b4
Refactor udev configuration files to use consistent YAML syntax for r…
bindsi May 21, 2025
a7de150
Refactor udev configuration files to use JSON format for discoveryDet…
bindsi May 21, 2025
fc3d0f5
Fix JSON formatting in udevGroupedConfiguration.yaml for discoveryDet…
bindsi May 21, 2025
0840b5e
Uncomment docker save commands for agent and controller in run-test-c…
bindsi May 21, 2025
095a1ce
Uncomment and enable artifact uploads for DebugEcho, UDEV, ONVIF, and…
bindsi May 21, 2025
2e11475
Uncomment docker save commands for DebugEcho, UDEV, ONVIF, and OPCUA …
bindsi May 21, 2025
9ada4e5
Update udev discoveryDetails to use ENV variable for ID_PATH
bindsi May 21, 2025
5d8435b
Add debug print statement for discoveryDetails path in grouped_config
bindsi May 21, 2025
fa0f9f4
Remove groupRecursive from udev discoveryDetails in udevGroupedConfig…
bindsi May 21, 2025
5c1d686
Restore groupRecursive and format udevRules in discoveryDetails for u…
bindsi May 21, 2025
d6566c3
Refactor udevGroupedConfiguration to remove groupRecursive and update…
bindsi May 21, 2025
e35716e
Update discoveryDetails format in udevGroupedConfiguration for consis…
bindsi May 21, 2025
da07fe4
Add debug print statement for discoveryDetails path in grouped_config
bindsi May 21, 2025
64a3572
Add groupRecursive to discoveryDetails in udevGroupedConfiguration
bindsi May 22, 2025
21dff76
Remove debug print statements from grouped_config fixture in test_udev
bindsi May 22, 2025
38ec820
Bump version to 0.13.12 in Cargo.lock, Cargo.toml, Chart.yaml, and ve…
bindsi May 23, 2025
15a4bcb
Update patch version
github-actions[bot] Jun 18, 2025
08c1e54
Merge branch 'main' into feature/webhookcheck
yujinkim-msft Jun 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions Cargo.lock

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

39 changes: 39 additions & 0 deletions akri.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.2.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{5D20AA90-6969-D8BD-9DCD-8634F4692FDA}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "brokers", "brokers", "{DF34A9C8-87A9-9338-5075-D37782952607}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "onvif-video-broker", "samples\brokers\onvif-video-broker\onvif-video-broker.csproj", "{4904093D-5FA2-6F06-0FCE-F3647411CD0E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "opcua-monitoring-broker", "samples\brokers\opcua-monitoring-broker\opcua-monitoring-broker.csproj", "{1E5A3E34-E860-DD44-E465-DC138A0529C9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4904093D-5FA2-6F06-0FCE-F3647411CD0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4904093D-5FA2-6F06-0FCE-F3647411CD0E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4904093D-5FA2-6F06-0FCE-F3647411CD0E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4904093D-5FA2-6F06-0FCE-F3647411CD0E}.Release|Any CPU.Build.0 = Release|Any CPU
{1E5A3E34-E860-DD44-E465-DC138A0529C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1E5A3E34-E860-DD44-E465-DC138A0529C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1E5A3E34-E860-DD44-E465-DC138A0529C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1E5A3E34-E860-DD44-E465-DC138A0529C9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{DF34A9C8-87A9-9338-5075-D37782952607} = {5D20AA90-6969-D8BD-9DCD-8634F4692FDA}
{4904093D-5FA2-6F06-0FCE-F3647411CD0E} = {DF34A9C8-87A9-9338-5075-D37782952607}
{1E5A3E34-E860-DD44-E465-DC138A0529C9} = {DF34A9C8-87A9-9338-5075-D37782952607}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {25B40193-6807-4C63-A79D-001205059134}
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion deployment/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 0.13.15
# 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.13.15
appVersion: 0.13.15
1 change: 1 addition & 0 deletions test/e2e/test_udev.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def grouped_config(akri_version):
body["spec"]["discoveryHandler"]["discoveryDetails"] = body["spec"][
"discoveryHandler"
]["discoveryDetails"].format(path)

client = kubernetes.client.CustomObjectsApi()
version = f'v{akri_version.split(".")[0]}'
client.create_namespaced_custom_object(
Expand Down
4 changes: 1 addition & 3 deletions test/e2e/yaml/udevDevNullConfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ metadata:
spec:
discoveryHandler:
name: udev
discoveryDetails: |+
udevRules:
- KERNEL=="null"
discoveryDetails: '{"udevRules":["KERNEL==\"null\""],"permissions":"rwm"}'
6 changes: 2 additions & 4 deletions test/e2e/yaml/udevGroupedConfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ metadata:
spec:
discoveryHandler:
name: udev
discoveryDetails: |+
groupRecursive: true
udevRules:
- ENV{{ID_PATH}}=="{}"
discoveryDetails: '{{"groupRecursive":true,"udevRules":["ENV{{ID_PATH}}==\"{}\""],"permissions":"rwm"}}'
# discoveryDetails: '{"udevRules":["ENV{{ID_PATH}}==\"{}\""],"permissions":"rwm"}'
2 changes: 1 addition & 1 deletion test/yaml/akri-udev-video-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
discoveryDetails: |+
udevRules:
- 'KERNEL=="video[0-9]*"'
permissions: "rwm"
permissions: rwm
brokerSpec:
brokerPodSpec:
containers:
Expand Down
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
0.13.15

1 change: 1 addition & 0 deletions webhooks/validating/configuration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ rust-version.workspace = true
[dependencies]
actix-web = { version = "4.10.0", features = ["openssl"] }
akri-shared = { path = "../../../shared" }
akri-udev = { path = "../../../discovery-handlers/udev" }
clap = "4.2.2"
k8s-openapi = { version = "0.17.0", default-features = false, features = ["schemars", "v1_23"] }
openapi = { git = "https://github.com/DazWilkin/openapi-admission-v1", tag = "v1.1.0" }
Expand Down
Loading
Loading