Skip to content

Commit

Permalink
Add Extensions and Config Value Logic for pganalyze (#677)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Stanton <[email protected]>
  • Loading branch information
ianstanton authored Mar 26, 2024
1 parent ebf71b5 commit cd8a139
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tembo-stacks/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tembo-stacks/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tembo-stacks"
description = "Tembo Stacks for Postgres"
version = "0.4.5"
version = "0.4.6"
authors = ["tembo.io"]
edition = "2021"
license = "Apache-2.0"
Expand Down
14 changes: 12 additions & 2 deletions tembo-stacks/src/apps/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,18 @@ pub fn merge_app_reqs(
pg_analyze_app_svc = merge_app_configs(pg_analyze_app_svc, cfg);
}
user_app_services.push(pg_analyze_app_svc);
// pganalyze only has app_service containers
// no extensions or trunk installs
// Handle extensions from pganalyze app
if let Some(extensions) = pg_analyze.extensions {
fin_app_extensions.extend(extensions);
}
// Handle trunk installs from pganalyze app
if let Some(trunks) = pg_analyze.trunk_installs {
fin_app_trunk_installs.extend(trunks);
}
// Handle postgres_config from pganalyze app
if let Some(pg_cfg) = pg_analyze.postgres_config {
final_pg_configs.extend(pg_cfg);
}
}
AppType::Custom(custom_app) => {
user_app_services.push(custom_app);
Expand Down

0 comments on commit cd8a139

Please sign in to comment.