Skip to content

Commit

Permalink
Forbereder appen for å kopiere data fra gammel til ny db i prod
Browse files Browse the repository at this point in the history
  • Loading branch information
klaramargrethehelgemo committed Jul 5, 2024
1 parent c0c6320 commit c1966e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit c1966e6

Please sign in to comment.