File tree Expand file tree Collapse file tree
crates/stackable-operator/src/databases/drivers Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -55,6 +55,11 @@ pub struct JdbcDatabaseConnectionDetails {
5555}
5656
5757impl 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 ( ) ) ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments