Skip to content

Commit 205d9a5

Browse files
committed
Clarify what add_to_container does
1 parent c6bdce6 commit 205d9a5

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

crates/stackable-operator/src/databases/drivers/celery.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ impl CeleryDatabaseConnectionDetails {
6767
.flatten()
6868
}
6969

70+
/// Adds all the needed elements (e.g. env vars or volume mounts) to the given
71+
/// [`ContainerBuilder`].
72+
///
73+
/// Currently, only environment variables are added. In the future it e.g. might also add TLS
74+
/// ca certificate mounts.
7075
pub fn add_to_container(&self, cb: &mut ContainerBuilder) {
7176
cb.add_env_vars(self.env_vars().cloned());
7277
}

crates/stackable-operator/src/databases/drivers/jdbc.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ pub struct JdbcDatabaseConnectionDetails {
5555
}
5656

5757
impl JdbcDatabaseConnectionDetails {
58+
/// Adds all the needed elements (e.g. env vars or volume mounts) to the given
59+
/// [`ContainerBuilder`].
60+
///
61+
/// Currently, only (optionally) environment variables for the username and password are added.
62+
/// In the future it e.g. might also add TLS ca certificate mounts.
5863
pub fn add_to_container(&self, cb: &mut ContainerBuilder) {
5964
let env_vars = self.username_env.iter().chain(self.password_env.iter());
6065
cb.add_env_vars(env_vars.cloned());

crates/stackable-operator/src/databases/drivers/sqlalchemy.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ impl SqlAlchemyDatabaseConnectionDetails {
6767
.flatten()
6868
}
6969

70+
/// Adds all the needed elements (e.g. env vars or volume mounts) to the given
71+
/// [`ContainerBuilder`].
72+
///
73+
/// Currently, only environment variables are added. In the future it e.g. might also add TLS
74+
/// ca certificate mounts.
7075
pub fn add_to_container(&self, cb: &mut ContainerBuilder) {
7176
cb.add_env_vars(self.env_vars().cloned());
7277
}

0 commit comments

Comments
 (0)