Skip to content

Commit b950bd7

Browse files
committed
refactor
1 parent 6991ad0 commit b950bd7

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

deploy/helm/trino-operator/crds/crds.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,16 +409,19 @@ spec:
409409
properties:
410410
add:
411411
default: []
412+
description: JVM arguments to be added
412413
items:
413414
type: string
414415
type: array
415416
remove:
416417
default: []
418+
description: JVM arguments to be removed by exact match
417419
items:
418420
type: string
419421
type: array
420422
removeRegex:
421423
default: []
424+
description: JVM arguments matching any of this regexes will be removed
422425
items:
423426
type: string
424427
type: array
@@ -705,16 +708,19 @@ spec:
705708
properties:
706709
add:
707710
default: []
711+
description: JVM arguments to be added
708712
items:
709713
type: string
710714
type: array
711715
remove:
712716
default: []
717+
description: JVM arguments to be removed by exact match
713718
items:
714719
type: string
715720
type: array
716721
removeRegex:
717722
default: []
723+
description: JVM arguments matching any of this regexes will be removed
718724
items:
719725
type: string
720726
type: array
@@ -1030,16 +1036,19 @@ spec:
10301036
properties:
10311037
add:
10321038
default: []
1039+
description: JVM arguments to be added
10331040
items:
10341041
type: string
10351042
type: array
10361043
remove:
10371044
default: []
1045+
description: JVM arguments to be removed by exact match
10381046
items:
10391047
type: string
10401048
type: array
10411049
removeRegex:
10421050
default: []
1051+
description: JVM arguments matching any of this regexes will be removed
10431052
items:
10441053
type: string
10451054
type: array
@@ -1326,16 +1335,19 @@ spec:
13261335
properties:
13271336
add:
13281337
default: []
1338+
description: JVM arguments to be added
13291339
items:
13301340
type: string
13311341
type: array
13321342
remove:
13331343
default: []
1344+
description: JVM arguments to be removed by exact match
13341345
items:
13351346
type: string
13361347
type: array
13371348
removeRegex:
13381349
default: []
1350+
description: JVM arguments matching any of this regexes will be removed
13391351
items:
13401352
type: string
13411353
type: array

rust/operator-binary/src/controller.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ pub enum Error {
342342
source: error_boundary::InvalidObject,
343343
},
344344

345-
#[snafu(display("failed to read role config"))]
346-
ReadRoleConfig { source: stackable_trino_crd::Error },
345+
#[snafu(display("failed to read role"))]
346+
ReadRole { source: stackable_trino_crd::Error },
347347

348348
#[snafu(display("failed to get merged jvmArgumentOverrides"))]
349349
GetMergedJvmArgumentOverrides {
@@ -475,11 +475,8 @@ pub async fn reconcile_trino(
475475

476476
for (trino_role_str, role_config) in validated_config {
477477
let trino_role = TrinoRole::from_str(&trino_role_str).context(FailedToParseRoleSnafu)?;
478-
let role: &stackable_operator::role_utils::Role<
479-
stackable_trino_crd::TrinoConfigFragment,
480-
GenericRoleConfig,
481-
JavaCommonConfig,
482-
> = trino.role(&trino_role).context(ReadRoleConfigSnafu)?;
478+
let role: &Role<TrinoConfigFragment, GenericRoleConfig, JavaCommonConfig> =
479+
trino.role(&trino_role).context(ReadRoleSnafu)?;
483480
for (role_group, config) in role_config {
484481
let rolegroup = trino_role.rolegroup_ref(trino, &role_group);
485482

0 commit comments

Comments
 (0)