Skip to content

Commit e9ce6e2

Browse files
committed
fix listener examples / comments
1 parent 4a90952 commit e9ce6e2

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/modules/trino/examples/getting_started/code/trino.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
matchLabels:
1212
trino: simple-trino
1313
coordinators:
14-
config:
14+
roleConfig:
1515
listenerClass: external-unstable
1616
roleGroups:
1717
default:

docs/modules/trino/examples/getting_started/code/trino.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
matchLabels:
1212
trino: simple-trino
1313
coordinators:
14-
config:
14+
roleConfig:
1515
listenerClass: external-unstable
1616
roleGroups:
1717
default:

docs/modules/trino/pages/usage-guide/listenerclass.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
:description: Configure Trino service exposure with ListenerClasses: cluster-internal, external-unstable, or external-stable.
33

44
The operator deploys a xref:listener-operator:listener.adoc[Listener] for the coodinator pod.
5-
The listener defaults to only being accessible from within the Kubernetes cluster, but this can be changed by setting `.spec.coordinators.config.listenerClass`:
5+
The listener defaults to only being accessible from within the Kubernetes cluster, but this can be changed by setting `.spec.coordinators.roleConfig.listenerClass`:
66

77
[source,yaml]
88
----
99
spec:
1010
coordinators:
11-
config:
11+
roleConfig:
1212
listenerClass: external-unstable # <1>
1313
...
1414
workers:

rust/operator-binary/src/crd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ impl v1alpha1::TrinoCluster {
845845
}))
846846
}
847847

848-
/// Returns the headless rolegroup service name `simple-trino-coordinator-default-<HEADLESS_SERVICE_SUFFIX>`.
848+
/// Returns the metrics rolegroup service name `simple-trino-coordinator-default-<METRICS_SERVICE_SUFFIX>`.
849849
pub fn rolegroup_metrics_service_name(role_group_ref_object_name: &str) -> String {
850850
format!("{}-{}", role_group_ref_object_name, METRICS_SERVICE_SUFFIX)
851851
}

0 commit comments

Comments
 (0)