Skip to content

Commit b12c657

Browse files
committed
fix: remove cluster info cli arguments from olm deployer
1 parent 8098b86 commit b12c657

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::data::container;
1010

1111
/// Copy the environment from the "secret-operator-deployer" container in `source`
1212
/// to the container "secret-operator" in `target`.
13-
/// The `target` must be a DaemonSet object otherwise this is a no-op.
13+
/// The `target` must be a DaemonSet object, otherwise this is a no-op.
1414
pub(super) fn maybe_copy_env(
1515
source: &Deployment,
1616
target: &mut DynamicObject,

rust/olm-deployer/src/main.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ struct OlmDeployerRun {
7171

7272
#[command(flatten)]
7373
pub telemetry: TelemetryOptions,
74-
75-
#[command(flatten)]
76-
pub cluster_info: KubernetesClusterInfoOptions,
7774
}
7875

7976
#[tokio::main]
@@ -85,7 +82,6 @@ async fn main() -> Result<()> {
8582
namespace,
8683
dir,
8784
telemetry,
88-
cluster_info,
8985
}) = opts.cmd
9086
{
9187
// NOTE (@NickLarsenNZ): Before stackable-telemetry was used:
@@ -104,7 +100,13 @@ async fn main() -> Result<()> {
104100
description = built_info::PKG_DESCRIPTION
105101
);
106102

107-
let client = client::initialize_operator(Some(APP_NAME.to_string()), &cluster_info).await?;
103+
let dummy_cluster_info = KubernetesClusterInfoOptions {
104+
kubernetes_cluster_domain: None,
105+
kubernetes_node_name: "".to_string(),
106+
};
107+
108+
let client =
109+
client::initialize_operator(Some(APP_NAME.to_string()), &dummy_cluster_info).await?;
108110

109111
let deployment = get_deployment(&csv, &namespace, &client).await?;
110112
let cluster_role = get_cluster_role(&csv, &client).await?;

0 commit comments

Comments
 (0)