Skip to content

Commit 8620056

Browse files
committed
docs: Adjust and fix doc comments
1 parent 42d3c9c commit 8620056

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

crates/stackable-operator/src/crd/listener/class.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use std::collections::BTreeMap;
22

3+
#[cfg(doc)]
4+
use k8s_openapi::api::core::v1::Service;
35
use kube::CustomResource;
46
use schemars::JsonSchema;
57
use serde::{Deserialize, Serialize};

crates/stackable-operator/src/crd/listener/mod.rs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
//! This modules provides resource types used to interact with [listener-operator](https://docs.stackable.tech/listener-operator/stable/index.html)
1+
//! This modules provides resource types used to interact with [listener-operator][listener-docs].
22
//!
33
//! # Custom Resources
44
//!
55
//! ## [`Listener`]
66
//!
7-
//! Exposes a set of pods, either internally to the cluster or to the outside world. The mechanism for how it is exposed
8-
//! is managed by the [`ListenerClass`].
7+
//! Exposes a set of pods, either internally to the cluster or to the outside world. The mechanism
8+
//! for how it is exposed is managed by the [`ListenerClass`].
99
//!
10-
//! It can be either created manually by the application administrator (for applications that expose a single load-balanced endpoint),
11-
//! or automatically when mounting a [listener volume](`ListenerOperatorVolumeSourceBuilder`) (for applications that expose a separate endpoint
12-
//! per replica).
10+
//! It can be either created manually by the application administrator (for applications that expose
11+
//! a single load-balanced endpoint), or automatically when mounting a [listener volume][lvb] (for
12+
//! applications that expose a separate endpoint per replica).
1313
//!
14-
//! All exposed pods *must* have a mounted [listener volume](`ListenerOperatorVolumeSourceBuilder`), regardless of whether the [`Listener`] is created automatically.
14+
//! All exposed pods *must* have a mounted [listener volume][lvb], regardless of whether the
15+
//! [`Listener`] is created automatically.
1516
//!
1617
//! ## [`ListenerClass`]
1718
//!
@@ -24,11 +25,12 @@
2425
//! Informs users and other operators about the state of all [`Listener`]s associated with a [`Pod`].
2526
//!
2627
//! It is created by the Stackable Secret Operator, and always named `pod-{pod.metadata.uid}`.
28+
//!
29+
//! [listener-docs]: https://docs.stackable.tech/listener-operator/stable/index.html
30+
//! [lvb]: ListenerOperatorVolumeSourceBuilder
2731
2832
#[cfg(doc)]
29-
use k8s_openapi::api::core::v1::{
30-
Node, PersistentVolume, PersistentVolumeClaim, Pod, Service, Volume,
31-
};
33+
use k8s_openapi::api::core::v1::{Node, PersistentVolume, PersistentVolumeClaim, Pod, Volume};
3234
use schemars::JsonSchema;
3335
use serde::{Deserialize, Serialize};
3436

0 commit comments

Comments
 (0)