Skip to content

Commit 7900b99

Browse files
committed
cannot patch the ns of the tls secret class anymore
1 parent 1fd80ae commit 7900b99

3 files changed

Lines changed: 0 additions & 89 deletions

File tree

rust/olm-deployer/src/data.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
use anyhow::{Result, bail};
21
use stackable_operator::kube::{ResourceExt, api::DynamicObject};
32

4-
pub fn data_field_as_mut<'a>(
5-
value: &'a mut serde_json::Value,
6-
pointer: &str,
7-
) -> Result<&'a mut serde_json::Value> {
8-
match value.pointer_mut(pointer) {
9-
Some(field) => Ok(field),
10-
x => bail!("invalid pointer {pointer} for object {x:?}"),
11-
}
12-
}
13-
143
pub fn container<'a>(
154
target: &'a mut DynamicObject,
165
container_name: &str,

rust/olm-deployer/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
///
1414
mod data;
1515
mod env;
16-
mod namespace;
1716
mod owner;
1817
mod resources;
1918
mod tolerations;
@@ -146,7 +145,6 @@ async fn main() -> Result<()> {
146145
&deployment,
147146
&cluster_role,
148147
)?;
149-
namespace::maybe_patch_namespace(&namespace, &mut obj, &gvk)?;
150148
env::maybe_copy_env(&deployment, &mut obj, &gvk)?;
151149
resources::maybe_copy_resources(&deployment, &mut obj, &gvk)?;
152150
// ---------- apply

rust/olm-deployer/src/namespace/mod.rs

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)