diff --git a/rules/exec_properties/exec_properties.bzl b/rules/exec_properties/exec_properties.bzl index 2c498664c..6391302f5 100644 --- a/rules/exec_properties/exec_properties.bzl +++ b/rules/exec_properties/exec_properties.bzl @@ -161,6 +161,10 @@ PARAMS = { key = "dockerPrivileged", verifier_fcn = _verify_bool, ), + "docker_run_as_container_provided_user": struct( + key = "dockerRunAsContainerProvidedUser", + verifier_fcn = _verify_string, + ), "docker_run_as_root": struct( key = "dockerRunAsRoot", verifier_fcn = _verify_bool, diff --git a/tests/rules/exec_properties/BUILD b/tests/rules/exec_properties/BUILD index 0e31131a8..e10ca30d0 100644 --- a/tests/rules/exec_properties/BUILD +++ b/tests/rules/exec_properties/BUILD @@ -21,6 +21,12 @@ compare_dicts_test( expected = {"dockerNetwork": "standard"}, ) +compare_dicts_test( + name = "docker_run_as_container_provided_user_compare_test", + actual = create_rbe_exec_properties_dict(docker_run_as_container_provided_user = "0:0"), + expected = {"dockerRunAsContainerProvidedUser": "0:0"}, +) + compare_dicts_test( name = "multiple_properties_compare_test", actual = create_rbe_exec_properties_dict(