@@ -103,7 +103,8 @@ impl<'a> RoleGroupBuilder<'a> {
103103 }
104104 }
105105
106- /// Builds the ConfigMap containing the configuration files of the role-group StatefulSet
106+ /// Builds the [`ConfigMap`] containing the configuration files of the role-group
107+ /// [`StatefulSet`]
107108 pub fn build_config_map ( & self ) -> ConfigMap {
108109 let metadata = self
109110 . common_metadata ( self . resource_names . role_group_config_map ( ) )
@@ -122,7 +123,7 @@ impl<'a> RoleGroupBuilder<'a> {
122123 }
123124 }
124125
125- /// Builds the role-group StatefulSet
126+ /// Builds the role-group [` StatefulSet`]
126127 pub fn build_stateful_set ( & self ) -> StatefulSet {
127128 let metadata = self
128129 . common_metadata ( self . resource_names . stateful_set_name ( ) )
@@ -177,7 +178,7 @@ impl<'a> RoleGroupBuilder<'a> {
177178 }
178179 }
179180
180- /// Builds the PodTemplateSpec for the role-group StatefulSet
181+ /// Builds the [` PodTemplateSpec`] for the role-group [` StatefulSet`]
181182 fn build_pod_template ( & self ) -> PodTemplateSpec {
182183 let mut node_role_labels = Labels :: new ( ) ;
183184 for node_role in self . role_group_config . config . node_roles . iter ( ) {
@@ -245,8 +246,8 @@ impl<'a> RoleGroupBuilder<'a> {
245246
246247 /// Returns the labels of OpenSearch nodes with the `cluster_manager` role.
247248 ///
248- /// As described in ` RoleBuilder::build_cluster_manager_service`, this function will be
249- /// changed or deleted.
249+ /// As described in [`super::role_builder:: RoleBuilder::build_cluster_manager_service`] , this
250+ /// function will be changed or deleted.
250251 pub fn cluster_manager_labels (
251252 cluster : & ValidatedCluster ,
252253 context_names : & ContextNames ,
@@ -275,7 +276,7 @@ impl<'a> RoleGroupBuilder<'a> {
275276 . expect ( "should be a valid label" )
276277 }
277278
278- /// Builds the container for the PodTemplateSpec
279+ /// Builds the container for the [` PodTemplateSpec`]
279280 fn build_container ( & self , role_group_config : & OpenSearchRoleGroupConfig ) -> Container {
280281 let product_image = self
281282 . cluster
@@ -312,7 +313,7 @@ impl<'a> RoleGroupBuilder<'a> {
312313 . get ( EnvVarName :: from_str_unsafe ( "OPENSEARCH_HOME" ) )
313314 . and_then ( |env_var| env_var. value . clone ( ) )
314315 . unwrap_or ( DEFAULT_OPENSEARCH_HOME . to_owned ( ) ) ;
315- // Use `OPENSEARCH_PATH_CONF` from envOverrides or default to `{ OPENSEARCH_HOME} /config`,
316+ // Use `OPENSEARCH_PATH_CONF` from envOverrides or default to `OPENSEARCH_HOME/config`,
316317 // i.e. depend on `OPENSEARCH_HOME`.
317318 let opensearch_path_conf = env_vars
318319 . get ( EnvVarName :: from_str_unsafe ( "OPENSEARCH_PATH_CONF" ) )
@@ -367,7 +368,7 @@ impl<'a> RoleGroupBuilder<'a> {
367368 . build ( )
368369 }
369370
370- /// Builds the headless Service for the role-group
371+ /// Builds the headless [` Service`] for the role-group
371372 pub fn build_headless_service ( & self ) -> Service {
372373 let metadata = self
373374 . common_metadata ( self . resource_names . headless_service_name ( ) )
@@ -437,7 +438,7 @@ impl<'a> RoleGroupBuilder<'a> {
437438 . expect ( "should be valid annotations" )
438439 }
439440
440- /// Builds the Listener for the role-group
441+ /// Builds the [`listener::v1alpha1:: Listener`] for the role-group
441442 ///
442443 /// The Listener exposes only the HTTP port.
443444 /// The Listener operator will create a Service per role-group.
@@ -495,7 +496,9 @@ impl<'a> RoleGroupBuilder<'a> {
495496 )
496497 }
497498
498- /// Labels to select a Pod in the role-group
499+ /// Labels to select a [`Pod`] in the role-group
500+ ///
501+ /// [`Pod`]: stackable_operator::k8s_openapi::api::core::v1::Pod
499502 fn pod_selector ( & self ) -> Labels {
500503 role_group_selector (
501504 & self . cluster ,
0 commit comments