Skip to content

Commit

Permalink
Fjern støtte for cleaning av databasen
Browse files Browse the repository at this point in the history
  • Loading branch information
androa committed Nov 22, 2024
1 parent 46935a3 commit ee5e227
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions .nais/nais.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ spec:
value: -XX:+UseParallelGC -XX:MaxRAMPercentage=35.0 -XX:ActiveProcessorCount=4 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp
- name: GRUPPER_SAKSBEHANDLER
value: {{azure.grupper.saksbehandler}}
- name: flyway.cleanDisabled
value: '{{flyway.cleanDisabled}}'
- name: CLEAN_ON_STARTUP
value: "false"
- name: KAFKA_EXTRA_TOPIC
value: {{kafka.extra_topic}}
# Avbryt innvilgelse etter x dager. Dette trenger vi en overgangsperiode med Arena
Expand Down
3 changes: 0 additions & 3 deletions .nais/vars-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ gcp:
sql:
tier: db-custom-1-3840

flyway:
cleanDisabled: false

azure:
tenant: trygdeetaten.no
grupper:
Expand Down
3 changes: 0 additions & 3 deletions .nais/vars-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ gcp:
sql:
tier: db-custom-1-3840

flyway:
cleanDisabled: true

azure:
tenant: nav.no
grupper:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package no.nav.dagpenger.behandling.mediator
import com.github.navikt.tbd_libs.rapids_and_rivers.KafkaRapid
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import mu.KotlinLogging
import no.nav.dagpenger.behandling.db.PostgresDataSourceBuilder.clean
import no.nav.dagpenger.behandling.db.PostgresDataSourceBuilder.runMigration
import no.nav.dagpenger.behandling.konfigurasjon.Configuration.config
import no.nav.dagpenger.behandling.konfigurasjon.støtterInnvilgelse
Expand Down Expand Up @@ -80,7 +79,6 @@ internal class ApplicationBuilder(
fun stop() = rapidsConnection.stop()

override fun onStartup(rapidsConnection: RapidsConnection) {
if (config["CLEAN_ON_STARTUP"] == "true") clean()
runMigration()
logger.info { "Starter opp dp-behandling. Støtter innvilgelse=$støtterInnvilgelse" }
}
Expand Down

0 comments on commit ee5e227

Please sign in to comment.