From b736a7f40bf1db621359dea0eb2f9a3b7657e369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Smolarek?= <34063647+Razz4780@users.noreply.github.com> Date: Wed, 11 Dec 2024 13:49:39 +0100 Subject: [PATCH] Added missing volume (#2977) --- changelog.d/+operator-tmp-volume.fixed.md | 1 + mirrord/operator/src/setup.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 changelog.d/+operator-tmp-volume.fixed.md diff --git a/changelog.d/+operator-tmp-volume.fixed.md b/changelog.d/+operator-tmp-volume.fixed.md new file mode 100644 index 00000000000..db28de877e5 --- /dev/null +++ b/changelog.d/+operator-tmp-volume.fixed.md @@ -0,0 +1 @@ +Fixed `mirrord operator setup` - added missing `/tmp` volume to the operator deployment. diff --git a/mirrord/operator/src/setup.rs b/mirrord/operator/src/setup.rs index acd2c2d7540..18edfa63c45 100644 --- a/mirrord/operator/src/setup.rs +++ b/mirrord/operator/src/setup.rs @@ -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(),