Skip to content

Commit 6a2f32a

Browse files
committed
connect: remove traces of deployment
1 parent fcd5d3a commit 6a2f32a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

rust/operator-binary/src/connect/controller.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ pub enum Error {
5858
#[snafu(display("failed to build spark connect server config map for {name}"))]
5959
BuildServerConfigMap { source: server::Error, name: String },
6060

61-
#[snafu(display("failed to build spark connect deployment"))]
62-
BuildServerDeployment { source: server::Error },
61+
#[snafu(display("failed to build spark connect stateful set"))]
62+
BuildServerStatefulSet { source: server::Error },
6363

6464
#[snafu(display("failed to update status of spark connect server {name}"))]
6565
ApplyStatus {
@@ -70,8 +70,8 @@ pub enum Error {
7070
#[snafu(display("spark connect object has no namespace"))]
7171
ObjectHasNoNamespace,
7272

73-
#[snafu(display("failed to update the connect server deployment"))]
74-
ApplyDeployment {
73+
#[snafu(display("failed to update the connect server stateful set"))]
74+
ApplyStatefulSet {
7575
source: stackable_operator::cluster_resources::Error,
7676
},
7777

@@ -274,15 +274,15 @@ pub async fn reconcile(
274274
// ========================================
275275
// Server stateful set
276276
let args = server::command_args(&scs.spec.args);
277-
let deployment = server::build_stateful_set(
277+
let stateful_set = server::build_stateful_set(
278278
scs,
279279
&server_config,
280280
&resolved_product_image,
281281
&service_account,
282282
&server_config_map,
283283
args,
284284
)
285-
.context(BuildServerDeploymentSnafu)?;
285+
.context(BuildServerStatefulSetSnafu)?;
286286

287287
// ========================================
288288
// Server listener
@@ -298,9 +298,9 @@ pub async fn reconcile(
298298

299299
ss_cond_builder.add(
300300
cluster_resources
301-
.add(client, deployment)
301+
.add(client, stateful_set)
302302
.await
303-
.context(ApplyDeploymentSnafu)?,
303+
.context(ApplyStatefulSetSnafu)?,
304304
);
305305

306306
cluster_resources

0 commit comments

Comments
 (0)