Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrering til Postgres 15 #162

Merged
merged 9 commits into from
Jul 5, 2024
4 changes: 2 additions & 2 deletions .nais/application/application-config-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ metadata:
spec:
image: {{image}}
replicas:
min: 2
max: 4
min: 0
max: 0
cpuThresholdPercentage: 75
port: 8080
webproxy: true
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/no/nav/veilarboppgave/util/DbUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static HikariConfig createDataSourceConfig(String dbUrl) {
@SneakyThrows
private static DataSource createVaultRefreshDataSource(HikariConfig config) {
String environment = isProduction().orElse(false) ? "prod" : "dev";
String role = isProduction().orElse(false) ? String.join("-", APPLICATION_NAME, environment, "admin") : String.join("-", APPLICATION_NAME, "pg15", environment, "admin") ;
String role = String.join("-", APPLICATION_NAME, "pg15", environment, "admin");

return HikariCPVaultUtil.createHikariDataSourceWithVaultIntegration(config, getMountPath(), role);
}
Expand Down