Skip to content

Commit 7ca7f44

Browse files
authored
fix: remove demoOrganizationCreationNotifier from ConfigMap when demoSiteEnabled is false (#2174)
1 parent c3d7cd7 commit 7ca7f44

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

manifests/bucketeer/charts/subscriber/templates/subscribers-configmap.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ metadata:
1111
heritage: {{ .Release.Service }}
1212
data:
1313
subscribers.json: |-
14-
{{- range $name, $config := .Values.subscribers }}
14+
{{- $subscribers := .Values.subscribers }}
15+
{{- if not .Values.env.demoSiteEnabled }}
16+
{{- $subscribers = omit $subscribers "demoOrganizationCreationNotifier" }}
17+
{{- end }}
18+
{{- range $name, $config := $subscribers }}
1519
{{- $_ := set $config "pubSubType" $.Values.global.pubsub.type }}
1620
{{- $_ := set $config "redisServerName" $.Values.global.pubsub.redis.serverName }}
1721
{{- $_ := set $config "redisAddr" $.Values.global.pubsub.redis.addr }}
@@ -20,7 +24,7 @@ data:
2024
{{- $_ := set $config "project" $.Values.global.pubsub.project }}
2125
{{- $_ := set $config "redisPartitionCount" $.Values.global.pubsub.redis.partitionCount }}
2226
{{- end }}
23-
{{ toJson .Values.subscribers }}
27+
{{ toJson $subscribers }}
2428
2529
onDemandSubscribers.json: |-
2630
{{- range $name, $config := .Values.onDemandSubscribers }}
@@ -35,7 +39,11 @@ data:
3539
{{ toJson .Values.onDemandSubscribers }}
3640
3741
processors.json: |-
38-
{{- range $name, $config := .Values.processors }}
42+
{{- $processors := .Values.processors }}
43+
{{- if not .Values.env.demoSiteEnabled }}
44+
{{- $processors = omit $processors "demoOrganizationCreationNotifier" }}
45+
{{- end }}
46+
{{- range $name, $config := $processors }}
3947
{{- if eq $name "segmentUserPersister" }}
4048
{{- $_ := set $config "pubSubType" $.Values.global.pubsub.type }}
4149
{{- $_ := set $config "redisServerName" $.Values.global.pubsub.redis.serverName }}
@@ -46,7 +54,7 @@ data:
4654
{{- $_ := set $config "redisPartitionCount" $.Values.global.pubsub.redis.partitionCount }}
4755
{{- end }}
4856
{{- end }}
49-
{{ toJson .Values.processors }}
57+
{{ toJson $processors }}
5058
5159
onDemandProcessors.json: |-
5260
{{- range $name, $config := .Values.onDemandProcessors }}

0 commit comments

Comments
 (0)