@@ -11,7 +11,11 @@ metadata:
1111    heritage : {{ .Release.Service }} 
1212data :
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 }} 
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
2529onDemandSubscribers.json : |- 
2630    {{- range $name, $config := .Values.onDemandSubscribers }} 
3539    {{ toJson .Values.onDemandSubscribers }} 
3640
3741processors.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 }} 
4654    {{- $_ := set $config "redisPartitionCount" $.Values.global.pubsub.redis.partitionCount }} 
4755    {{- end }} 
4856    {{- end }} 
49-     {{ toJson .Values. processors }} 
57+     {{ toJson $ processors }} 
5058
5159onDemandProcessors.json : |- 
5260    {{- range $name, $config := .Values.onDemandProcessors }} 
0 commit comments