File tree 4 files changed +38
-3
lines changed
src/main/kotlin/no/nav/syfo
4 files changed +38
-3
lines changed Original file line number Diff line number Diff line change 17
17
uses : nais/deploy/actions/deploy@v2
18
18
env :
19
19
CLUSTER : dev-gcp
20
- RESOURCE : nais/topics/dinesykmeldte-lest-topic .yaml
20
+ RESOURCE : nais/topics/dinesykmeldte-hendelser-v2 .yaml
21
21
VAR : kafka-pool=nav-dev
22
22
23
23
deploy-topic-to-prod :
33
33
uses : nais/deploy/actions/deploy@v2
34
34
env :
35
35
CLUSTER : prod-gcp
36
- RESOURCE : nais/topics/dinesykmeldte-lest-topic .yaml
36
+ RESOURCE : nais/topics/dinesykmeldte-hendelser-v2 .yaml
37
37
VAR : kafka-pool=nav-prod
Original file line number Diff line number Diff line change
1
+ apiVersion : kafka.nais.io/v1
2
+ kind : Topic
3
+ metadata :
4
+ name : dinesykmeldte-hendelser-v2
5
+ namespace : team-esyfo
6
+ labels :
7
+ team : team-esyfo
8
+ spec :
9
+ pool : {{kafka-pool}}
10
+ config : # optional; all fields are optional too; defaults shown
11
+ cleanupPolicy : delete # delete, compact
12
+ minimumInSyncReplicas : 3
13
+ partitions : 3
14
+ replication : 3 # see min/max requirements
15
+ retentionBytes : -1 # -1 means unlimited
16
+ retentionHours : 2952 # 4 months
17
+ acl :
18
+ - team : flex
19
+ application : sykepengesoknad-narmesteleder-varsler
20
+ access : write
21
+ - team : team-esyfo
22
+ application : esyfovarsel
23
+ access : write
24
+ - team : teamsykefravr
25
+ application : isdialogmote
26
+ access : write
27
+ - team : team-esyfo
28
+ application : syfomotebehov
29
+ access : write
30
+ - team : team-esyfo
31
+ application : dinesykmeldte-backend
32
+ access : read
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ data class Environment(
15
15
val narmestelederLeesahTopic : String = " teamsykmelding.syfo-narmesteleder-leesah" ,
16
16
val sendtSykmeldingTopic : String = " teamsykmelding.syfo-sendt-sykmelding" ,
17
17
val sykepengesoknadTopic : String = " flex.sykepengesoknad" ,
18
- val hendelserTopic : String = " teamsykmelding.dinesykmeldte-hendelser-v2" ,
18
+ val hendelserTopic : String = " esyfo.dinesykmeldte-hendelser-v2" ,
19
+ val hendelserTopicLegacy : String = " teamsykmelding.dinesykmeldte-hendelser-v2" ,
19
20
val syketilfelleEndpointURL : String =
20
21
getEnvVar("SYKETILLFELLE_ENDPOINT_URL ", "http://flex-syketilfelle.flex"),
21
22
val syketilfelleScope : String = getEnvVar("SYKETILLFELLE_SCOPE "),
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ class CommonKafkaService(
38
38
environment.sendtSykmeldingTopic,
39
39
environment.sykepengesoknadTopic,
40
40
environment.hendelserTopic,
41
+ environment.hendelserTopicLegacy,
41
42
),
42
43
)
43
44
start()
@@ -64,6 +65,7 @@ class CommonKafkaService(
64
65
sykmeldingService.handleSendtSykmeldingKafkaMessage(it)
65
66
environment.sykepengesoknadTopic -> soknadService.handleSykepengesoknad(it)
66
67
environment.hendelserTopic -> hendelserService.handleHendelse(it)
68
+ environment.hendelserTopicLegacy -> hendelserService.handleHendelse(it)
67
69
else ->
68
70
throw IllegalStateException (
69
71
" Har mottatt melding på ukjent topic: ${it.topic()} " ,
You can’t perform that action at this time.
0 commit comments