You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/commons/listener.rs
+93-8Lines changed: 93 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,29 @@
1
1
//! This modules provides resource types used to interact with [listener-operator](https://docs.stackable.tech/listener-operator/stable/index.html)
2
+
//!
3
+
//! # Custom Resources
4
+
//!
5
+
//! ## [`Listener`]
6
+
//!
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`].
9
+
//!
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).
13
+
//!
14
+
//! All exposed pods *must* have a mounted [listener volume](`ListenerOperatorVolumeSourceBuilder`), regardless of whether the [`Listener`] is created automatically.
15
+
//!
16
+
//! ## [`ListenerClass`]
17
+
//!
18
+
//! Declares a policy for how [`Listener`]s are exposed to users.
19
+
//!
20
+
//! It is created by the cluster administrator.
21
+
//!
22
+
//! ## [`PodListeners`]
23
+
//!
24
+
//! Informs users and other operators about the state of all [`Listener`]s associated with a [`Pod`].
25
+
//!
26
+
//! It is created by the Stackable Secret Operator, and always named `pod-{pod.metadata.uid}`.
2
27
3
28
use std::collections::BTreeMap;
4
29
@@ -7,10 +32,15 @@ use schemars::JsonSchema;
7
32
use serde::{Deserialize,Serialize};
8
33
9
34
#[cfg(doc)]
10
-
use k8s_openapi::api::core::v1::{Node,Pod,Service,Volume};
0 commit comments