Skip to content

Commit

Permalink
Added missing volume (#2977)
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 authored Dec 11, 2024
1 parent d3d4395 commit b736a7f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/+operator-tmp-volume.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed `mirrord operator setup` - added missing `/tmp` volume to the operator deployment.
12 changes: 12 additions & 0 deletions mirrord/operator/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,18 @@ impl OperatorDeployment {
});
}

// For downloading and using CA.
volumes.push(Volume {
name: "tmp".to_string(),
empty_dir: Some(Default::default()),
..Default::default()
});
volume_mounts.push(VolumeMount {
mount_path: "/tmp".to_string(),
name: "tmp".to_string(),
..Default::default()
});

if let Some(license_key) = license_key {
envs.push(EnvVar {
name: "OPERATOR_LICENSE_KEY".to_owned(),
Expand Down

0 comments on commit b736a7f

Please sign in to comment.