Skip to content

Commit

Permalink
SecurityContext.read_only_root_filesystem (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
koropets authored Apr 27, 2022
1 parent 15ada33 commit 955ace9
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/deploy_job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,10 @@ fn deploy_container(gordo: &Gordo, environment: Vec<EnvVar>, config: &Config) ->
.into_iter(),
)),
});
container.security_context = Some(SecurityContext {
run_as_non_root: Some(true),
allow_privilege_escalation: None,
capabilities: None,
privileged: None,
proc_mount: None,
read_only_root_filesystem: None,
run_as_group: None,
run_as_user: None,
se_linux_options: None,
windows_options: None,
});
let mut security_context = SecurityContext::default();
security_context.run_as_non_root = Some(true);
security_context.read_only_root_filesystem = Some(true);
container.security_context = Some(security_context);
container
}

Expand Down

0 comments on commit 955ace9

Please sign in to comment.