summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-02-02 12:42:45 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-02-02 12:42:45 +0100
commit245f09bd220695664e754f5407f424e9033c322c (patch)
tree4b3ec7357419b97ac9ebb38a1c9d326d732bd9d1 /src/config
parent928b85f24bee213442a596675143eb06a29b1550 (diff)
Add network-mode setting for endpoints
This patch adds the ability to set network mode for an endpoint. This means that all containers on the endpoint are started with, for example, --net=host (if that is desired). Signed-off-by: Matthias Beyer <matthias.beyer@atos.net> Tested-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/endpoint_config.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/endpoint_config.rs b/src/config/endpoint_config.rs
index b1734c8..12a588a 100644
--- a/src/config/endpoint_config.rs
+++ b/src/config/endpoint_config.rs
@@ -37,6 +37,9 @@ pub struct Endpoint {
/// Maximum number of jobs which are allowed on this endpoint
#[getset(get_copy = "pub")]
maxjobs: usize,
+
+ #[getset(get = "pub")]
+ network_mode: Option<String>,
}
/// The type of an endpoint