Skip to content

Commit d3b8ba3

Browse files
katarinazapraznaTenSt
authored andcommitted
feat: add patchman.advisory.update Kafka topic config
1 parent 1e33ca9 commit d3b8ba3

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

base/utils/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ type coreConfig struct {
6363
EventsTopic string
6464
EvalTopic string
6565
CreatedSystemsTopic string
66+
AdvisoryUpdateTopic string
6667
PayloadTrackerTopic string
6768
RemediationUpdateTopic string
6869
NotificationsTopic string
@@ -171,6 +172,7 @@ func initTopicsFromEnv() {
171172
CoreCfg.EventsTopic = Getenv("EVENTS_TOPIC", "")
172173
CoreCfg.EvalTopic = Getenv("EVAL_TOPIC", "")
173174
CoreCfg.CreatedSystemsTopic = Getenv("CREATED_SYSTEMS_TOPIC", "")
175+
CoreCfg.AdvisoryUpdateTopic = Getenv("ADVISORY_UPDATE_TOPIC", "")
174176
CoreCfg.PayloadTrackerTopic = Getenv("PAYLOAD_TRACKER_TOPIC", "")
175177
CoreCfg.RemediationUpdateTopic = Getenv("REMEDIATIONS_UPDATE_TOPIC", "")
176178
CoreCfg.NotificationsTopic = Getenv("NOTIFICATIONS_TOPIC", "")

conf/common.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ KAFKA_READY_ADDRESS=http://kafka:9099/
1313

1414
EVAL_TOPIC=patchman.evaluator.upload
1515
CREATED_SYSTEMS_TOPIC=patchman.evaluator.user-evaluation
16+
ADVISORY_UPDATE_TOPIC=patchman.advisory.update
1617
EVENTS_TOPIC=platform.inventory.events
1718
NOTIFICATIONS_TOPIC=platform.notifications.ingress
1819
PAYLOAD_TRACKER_TOPIC=platform.payload-status

deploy/clowdapp.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ objects:
530530
- {replicas: 3, partitions: 10, topicName: platform.notifications.ingress}
531531
- {replicas: 3, partitions: 10, topicName: platform.content-sources.template}
532532
- {replicas: 3, partitions: 4, topicName: patchman.evaluator.user-evaluation}
533+
- {replicas: 3, partitions: 10, topicName: patchman.advisory.update}
533534

534535
dependencies:
535536
- host-inventory

dev/kafka/setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ for topic in \
88
"patchman.evaluator.recalc" \
99
"patchman.evaluator.upload" \
1010
"patchman.evaluator.user-evaluation" \
11+
"patchman.advisory.update" \
1112
"platform.content-sources.template" \
1213
"platform.inventory.events" \
1314
"platform.inventory.host-apps" \

0 commit comments

Comments
 (0)