Skip to content

Commit 0a6c5b9

Browse files
Inject Mongo credentials optionally based on a helm flag (#192)
Co-authored-by: Aaron Steinfeld <45047841+aaron-steinfeld@users.noreply.github.com>
1 parent f1c9f7b commit 0a6c5b9

File tree

14 files changed

+72
-59
lines changed

14 files changed

+72
-59
lines changed

attribute-projection-registry/gradle.lockfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ io.grpc:grpc-protobuf:1.57.2=compileClasspath,runtimeClasspath
1919
io.grpc:grpc-stub:1.57.2=compileClasspath,runtimeClasspath
2020
javax.annotation:javax.annotation-api:1.3.2=runtimeClasspath
2121
org.checkerframework:checker-qual:3.33.0=compileClasspath,runtimeClasspath
22-
org.hypertrace.bom:hypertrace-bom:0.2.6=compileClasspath,runtimeClasspath
23-
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.8=compileClasspath,runtimeClasspath
22+
org.hypertrace.bom:hypertrace-bom:0.2.7=compileClasspath,runtimeClasspath
23+
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.9=compileClasspath,runtimeClasspath
2424
empty=annotationProcessor

attribute-service-api/gradle.lockfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ io.grpc:grpc-protobuf:1.57.2=compileClasspath,runtimeClasspath
1818
io.grpc:grpc-stub:1.57.2=compileClasspath,runtimeClasspath
1919
javax.annotation:javax.annotation-api:1.3.2=compileClasspath,runtimeClasspath
2020
org.checkerframework:checker-qual:3.33.0=compileClasspath,runtimeClasspath
21-
org.hypertrace.bom:hypertrace-bom:0.2.6=compileClasspath,runtimeClasspath
22-
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.8=compileClasspath,runtimeClasspath
21+
org.hypertrace.bom:hypertrace-bom:0.2.7=compileClasspath,runtimeClasspath
22+
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.9=compileClasspath,runtimeClasspath
2323
empty=annotationProcessor

attribute-service-client/gradle.lockfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ io.perfmark:perfmark-api:0.26.0=runtimeClasspath
3131
javax.annotation:javax.annotation-api:1.3.2=runtimeClasspath
3232
org.checkerframework:checker-qual:3.33.0=compileClasspath,runtimeClasspath
3333
org.codehaus.mojo:animal-sniffer-annotations:1.23=runtimeClasspath
34-
org.hypertrace.bom:hypertrace-bom:0.2.6=compileClasspath,runtimeClasspath
34+
org.hypertrace.bom:hypertrace-bom:0.2.7=compileClasspath,runtimeClasspath
3535
org.hypertrace.core.grpcutils:grpc-client-utils:0.12.5=compileClasspath,runtimeClasspath
3636
org.hypertrace.core.grpcutils:grpc-context-utils:0.12.5=runtimeClasspath
37-
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.8=compileClasspath,runtimeClasspath
37+
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.9=compileClasspath,runtimeClasspath
3838
org.slf4j:slf4j-api:1.7.36=runtimeClasspath
3939
empty=annotationProcessor

attribute-service-factory/gradle.lockfile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,25 @@ org.apache.logging.log4j:log4j-core:2.19.0=runtimeClasspath
6767
org.apache.logging.log4j:log4j-slf4j-impl:2.19.0=runtimeClasspath
6868
org.checkerframework:checker-qual:3.33.0=compileClasspath,runtimeClasspath
6969
org.codehaus.mojo:animal-sniffer-annotations:1.23=runtimeClasspath
70-
org.eclipse.jetty:jetty-http:9.4.52.v20230823=runtimeClasspath
71-
org.eclipse.jetty:jetty-io:9.4.52.v20230823=runtimeClasspath
72-
org.eclipse.jetty:jetty-security:9.4.52.v20230823=runtimeClasspath
73-
org.eclipse.jetty:jetty-server:9.4.52.v20230823=runtimeClasspath
74-
org.eclipse.jetty:jetty-servlet:9.4.52.v20230823=runtimeClasspath
75-
org.eclipse.jetty:jetty-util-ajax:9.4.52.v20230823=runtimeClasspath
76-
org.eclipse.jetty:jetty-util:9.4.52.v20230823=runtimeClasspath
70+
org.eclipse.jetty:jetty-http:9.4.53.v20231009=runtimeClasspath
71+
org.eclipse.jetty:jetty-io:9.4.53.v20231009=runtimeClasspath
72+
org.eclipse.jetty:jetty-security:9.4.53.v20231009=runtimeClasspath
73+
org.eclipse.jetty:jetty-server:9.4.53.v20231009=runtimeClasspath
74+
org.eclipse.jetty:jetty-servlet:9.4.53.v20231009=runtimeClasspath
75+
org.eclipse.jetty:jetty-util-ajax:9.4.53.v20231009=runtimeClasspath
76+
org.eclipse.jetty:jetty-util:9.4.53.v20231009=runtimeClasspath
7777
org.hdrhistogram:HdrHistogram:2.1.12=runtimeClasspath
78-
org.hypertrace.bom:hypertrace-bom:0.2.6=compileClasspath,runtimeClasspath
79-
org.hypertrace.core.documentstore:document-store:0.7.37=compileClasspath,runtimeClasspath
78+
org.hypertrace.bom:hypertrace-bom:0.2.7=compileClasspath,runtimeClasspath
79+
org.hypertrace.core.documentstore:document-store:0.7.44=compileClasspath,runtimeClasspath
8080
org.hypertrace.core.grpcutils:grpc-client-utils:0.12.5=compileClasspath,runtimeClasspath
8181
org.hypertrace.core.grpcutils:grpc-context-utils:0.12.5=runtimeClasspath
8282
org.hypertrace.core.grpcutils:grpc-server-utils:0.12.2=runtimeClasspath
83-
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.8=compileClasspath,runtimeClasspath
84-
org.hypertrace.core.serviceframework:docstore-metrics:0.1.60=runtimeClasspath
85-
org.hypertrace.core.serviceframework:platform-grpc-service-framework:0.1.60=compileClasspath,runtimeClasspath
86-
org.hypertrace.core.serviceframework:platform-metrics:0.1.60=runtimeClasspath
87-
org.hypertrace.core.serviceframework:platform-service-framework:0.1.60=compileClasspath,runtimeClasspath
88-
org.hypertrace.core.serviceframework:service-framework-spi:0.1.60=compileClasspath,runtimeClasspath
83+
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.9=compileClasspath,runtimeClasspath
84+
org.hypertrace.core.serviceframework:docstore-metrics:0.1.61=runtimeClasspath
85+
org.hypertrace.core.serviceframework:platform-grpc-service-framework:0.1.61=compileClasspath,runtimeClasspath
86+
org.hypertrace.core.serviceframework:platform-metrics:0.1.61=runtimeClasspath
87+
org.hypertrace.core.serviceframework:platform-service-framework:0.1.61=compileClasspath,runtimeClasspath
88+
org.hypertrace.core.serviceframework:service-framework-spi:0.1.61=compileClasspath,runtimeClasspath
8989
org.latencyutils:LatencyUtils:2.0.3=runtimeClasspath
9090
org.mongodb:bson-record-codec:4.9.0=runtimeClasspath
9191
org.mongodb:bson:4.9.0=runtimeClasspath

attribute-service-impl/gradle.lockfile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,21 @@ org.apache.logging.log4j:log4j-core:2.19.0=runtimeClasspath
5959
org.apache.logging.log4j:log4j-slf4j-impl:2.19.0=runtimeClasspath
6060
org.checkerframework:checker-qual:3.33.0=compileClasspath,runtimeClasspath
6161
org.codehaus.mojo:animal-sniffer-annotations:1.23=runtimeClasspath
62-
org.eclipse.jetty:jetty-http:9.4.52.v20230823=runtimeClasspath
63-
org.eclipse.jetty:jetty-io:9.4.52.v20230823=runtimeClasspath
64-
org.eclipse.jetty:jetty-security:9.4.52.v20230823=runtimeClasspath
65-
org.eclipse.jetty:jetty-server:9.4.52.v20230823=runtimeClasspath
66-
org.eclipse.jetty:jetty-servlet:9.4.52.v20230823=runtimeClasspath
67-
org.eclipse.jetty:jetty-util-ajax:9.4.52.v20230823=runtimeClasspath
68-
org.eclipse.jetty:jetty-util:9.4.52.v20230823=runtimeClasspath
62+
org.eclipse.jetty:jetty-http:9.4.53.v20231009=runtimeClasspath
63+
org.eclipse.jetty:jetty-io:9.4.53.v20231009=runtimeClasspath
64+
org.eclipse.jetty:jetty-security:9.4.53.v20231009=runtimeClasspath
65+
org.eclipse.jetty:jetty-server:9.4.53.v20231009=runtimeClasspath
66+
org.eclipse.jetty:jetty-servlet:9.4.53.v20231009=runtimeClasspath
67+
org.eclipse.jetty:jetty-util-ajax:9.4.53.v20231009=runtimeClasspath
68+
org.eclipse.jetty:jetty-util:9.4.53.v20231009=runtimeClasspath
6969
org.hdrhistogram:HdrHistogram:2.1.12=runtimeClasspath
70-
org.hypertrace.bom:hypertrace-bom:0.2.6=compileClasspath,runtimeClasspath
71-
org.hypertrace.core.documentstore:document-store:0.7.37=compileClasspath,runtimeClasspath
70+
org.hypertrace.bom:hypertrace-bom:0.2.7=compileClasspath,runtimeClasspath
71+
org.hypertrace.core.documentstore:document-store:0.7.44=compileClasspath,runtimeClasspath
7272
org.hypertrace.core.grpcutils:grpc-context-utils:0.12.5=compileClasspath,runtimeClasspath
73-
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.8=compileClasspath,runtimeClasspath
74-
org.hypertrace.core.serviceframework:docstore-metrics:0.1.60=compileClasspath,runtimeClasspath
75-
org.hypertrace.core.serviceframework:platform-metrics:0.1.60=runtimeClasspath
76-
org.hypertrace.core.serviceframework:service-framework-spi:0.1.60=compileClasspath,runtimeClasspath
73+
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.9=compileClasspath,runtimeClasspath
74+
org.hypertrace.core.serviceframework:docstore-metrics:0.1.61=compileClasspath,runtimeClasspath
75+
org.hypertrace.core.serviceframework:platform-metrics:0.1.61=runtimeClasspath
76+
org.hypertrace.core.serviceframework:service-framework-spi:0.1.61=compileClasspath,runtimeClasspath
7777
org.latencyutils:LatencyUtils:2.0.3=runtimeClasspath
7878
org.mongodb:bson-record-codec:4.9.0=runtimeClasspath
7979
org.mongodb:bson:4.9.0=runtimeClasspath

attribute-service-impl/src/main/java/org/hypertrace/core/attribute/service/AttributeServiceImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ private Datastore initDataStore(
118118
.usernameKey(dataStoreType + ".user")
119119
.passwordKey(dataStoreType + ".password")
120120
.applicationNameKey("appName")
121+
.poolMaxConnectionsKey("maxPoolSize")
122+
.poolConnectionAccessTimeoutKey("connectionAccessTimeout")
123+
.poolConnectionSurrenderTimeoutKey("connectionIdleTime")
121124
.extract();
122125

123126
final Datastore datastore = DatastoreProvider.getDatastore(datastoreConfig);

attribute-service-tenant-api/gradle.lockfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
# This file is expected to be part of source control.
44
com.fasterxml.jackson:jackson-bom:2.15.2=compileClasspath,runtimeClasspath
55
io.grpc:grpc-bom:1.57.2=compileClasspath,runtimeClasspath
6-
org.hypertrace.bom:hypertrace-bom:0.2.6=compileClasspath,runtimeClasspath
7-
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.8=compileClasspath,runtimeClasspath
6+
org.hypertrace.bom:hypertrace-bom:0.2.7=compileClasspath,runtimeClasspath
7+
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.9=compileClasspath,runtimeClasspath
88
empty=annotationProcessor

attribute-service/gradle.lockfile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,25 +80,25 @@ org.apache.logging.log4j:log4j-slf4j-impl:2.19.0=runtimeClasspath
8080
org.apache.logging.log4j:log4j-slf4j2-impl:2.20.0=runtimeClasspath
8181
org.checkerframework:checker-qual:3.33.0=compileClasspath,runtimeClasspath
8282
org.codehaus.mojo:animal-sniffer-annotations:1.23=runtimeClasspath
83-
org.eclipse.jetty:jetty-http:9.4.52.v20230823=runtimeClasspath
84-
org.eclipse.jetty:jetty-io:9.4.52.v20230823=runtimeClasspath
85-
org.eclipse.jetty:jetty-security:9.4.52.v20230823=runtimeClasspath
86-
org.eclipse.jetty:jetty-server:9.4.52.v20230823=runtimeClasspath
87-
org.eclipse.jetty:jetty-servlet:9.4.52.v20230823=runtimeClasspath
88-
org.eclipse.jetty:jetty-util-ajax:9.4.52.v20230823=runtimeClasspath
89-
org.eclipse.jetty:jetty-util:9.4.52.v20230823=runtimeClasspath
83+
org.eclipse.jetty:jetty-http:9.4.53.v20231009=runtimeClasspath
84+
org.eclipse.jetty:jetty-io:9.4.53.v20231009=runtimeClasspath
85+
org.eclipse.jetty:jetty-security:9.4.53.v20231009=runtimeClasspath
86+
org.eclipse.jetty:jetty-server:9.4.53.v20231009=runtimeClasspath
87+
org.eclipse.jetty:jetty-servlet:9.4.53.v20231009=runtimeClasspath
88+
org.eclipse.jetty:jetty-util-ajax:9.4.53.v20231009=runtimeClasspath
89+
org.eclipse.jetty:jetty-util:9.4.53.v20231009=runtimeClasspath
9090
org.hdrhistogram:HdrHistogram:2.1.12=runtimeClasspath
91-
org.hypertrace.bom:hypertrace-bom:0.2.6=compileClasspath,runtimeClasspath
92-
org.hypertrace.core.documentstore:document-store:0.7.37=runtimeClasspath
91+
org.hypertrace.bom:hypertrace-bom:0.2.7=compileClasspath,runtimeClasspath
92+
org.hypertrace.core.documentstore:document-store:0.7.44=runtimeClasspath
9393
org.hypertrace.core.grpcutils:grpc-client-utils:0.12.5=compileClasspath,runtimeClasspath
9494
org.hypertrace.core.grpcutils:grpc-context-utils:0.12.5=runtimeClasspath
9595
org.hypertrace.core.grpcutils:grpc-server-utils:0.12.2=runtimeClasspath
96-
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.8=compileClasspath,runtimeClasspath
97-
org.hypertrace.core.serviceframework:docstore-metrics:0.1.60=runtimeClasspath
98-
org.hypertrace.core.serviceframework:platform-grpc-service-framework:0.1.60=compileClasspath,runtimeClasspath
99-
org.hypertrace.core.serviceframework:platform-metrics:0.1.60=runtimeClasspath
100-
org.hypertrace.core.serviceframework:platform-service-framework:0.1.60=compileClasspath,runtimeClasspath
101-
org.hypertrace.core.serviceframework:service-framework-spi:0.1.60=compileClasspath,runtimeClasspath
96+
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.9=compileClasspath,runtimeClasspath
97+
org.hypertrace.core.serviceframework:docstore-metrics:0.1.61=runtimeClasspath
98+
org.hypertrace.core.serviceframework:platform-grpc-service-framework:0.1.61=compileClasspath,runtimeClasspath
99+
org.hypertrace.core.serviceframework:platform-metrics:0.1.61=runtimeClasspath
100+
org.hypertrace.core.serviceframework:platform-service-framework:0.1.61=compileClasspath,runtimeClasspath
101+
org.hypertrace.core.serviceframework:service-framework-spi:0.1.61=compileClasspath,runtimeClasspath
102102
org.latencyutils:LatencyUtils:2.0.3=runtimeClasspath
103103
org.mongodb:bson-record-codec:4.9.0=runtimeClasspath
104104
org.mongodb:bson:4.9.0=runtimeClasspath

attribute-service/src/main/resources/configs/common/application.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ service.admin.port = 9013
44
document.store {
55
dataStoreType = mongo
66
appName = attribute-service-local
7+
maxPoolSize = 10
78
mongo {
89
database = default_db
910
user = ${?MONGO_SERVICE_USERNAME}

caching-attribute-service-client/gradle.lockfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ io.reactivex.rxjava3:rxjava:3.1.7=compileClasspath,runtimeClasspath
3131
javax.annotation:javax.annotation-api:1.3.2=runtimeClasspath
3232
org.checkerframework:checker-qual:3.33.0=compileClasspath,runtimeClasspath
3333
org.codehaus.mojo:animal-sniffer-annotations:1.23=runtimeClasspath
34-
org.hypertrace.bom:hypertrace-bom:0.2.6=compileClasspath,runtimeClasspath
34+
org.hypertrace.bom:hypertrace-bom:0.2.7=compileClasspath,runtimeClasspath
3535
org.hypertrace.core.grpcutils:grpc-client-rx-utils:0.12.5=compileClasspath,runtimeClasspath
3636
org.hypertrace.core.grpcutils:grpc-client-utils:0.12.5=compileClasspath,runtimeClasspath
3737
org.hypertrace.core.grpcutils:grpc-context-utils:0.12.5=compileClasspath,runtimeClasspath
38-
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.8=compileClasspath,runtimeClasspath
38+
org.hypertrace.core.kafkastreams.framework:kafka-bom:0.3.9=compileClasspath,runtimeClasspath
3939
org.projectlombok:lombok:1.18.28=annotationProcessor,compileClasspath
4040
org.reactivestreams:reactive-streams:1.0.4=compileClasspath,runtimeClasspath
4141
org.slf4j:slf4j-api:2.0.7=compileClasspath,runtimeClasspath

0 commit comments

Comments
 (0)