File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
1414pub ( super ) fn maybe_copy_env (
1515 source : & Deployment ,
1616 target : & mut DynamicObject ,
Original file line number Diff line number Diff 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 ?;
You can’t perform that action at this time.
0 commit comments