Skip to content

Commit

Permalink
[helm-charts] Allow filtering cassandra nodes by datacenter (#2273)
Browse files Browse the repository at this point in the history
Co-authored-by: jschaul <[email protected]>
  • Loading branch information
akshaymankar and jschaul authored Apr 11, 2022
1 parent cefdda9 commit 9ba1c3b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
1 change: 1 addition & 0 deletions changelog.d/2-features/helm-allow-filter-cass-dc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[helm-charts] Allow filtering cassandra nodes by datacenter
3 changes: 3 additions & 0 deletions charts/brig/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ data:
host: {{ .cassandra.host }}
port: 9042
keyspace: brig
{{- if hasKey .cassandra "filterNodesByDatacentre" }}
filterNodesByDatacentre: {{ .cassandra.filterNodesByDatacentre }}
{{- end }}
elasticsearch:
url: http://{{ .elasticsearch.host }}:{{ .elasticsearch.port }}
Expand Down
3 changes: 3 additions & 0 deletions charts/galley/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ data:
host: {{ .cassandra.host }}
port: 9042
keyspace: galley
{{- if hasKey .cassandra "filterNodesByDatacentre" }}
filterNodesByDatacentre: {{ .cassandra.filterNodesByDatacentre }}
{{- end }}
brig:
host: brig
Expand Down
3 changes: 3 additions & 0 deletions charts/gundeck/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ data:
host: {{ .cassandra.host }}
port: 9042
keyspace: gundeck
{{- if hasKey .cassandra "filterNodesByDatacentre" }}
filterNodesByDatacentre: {{ .cassandra.filterNodesByDatacentre }}
{{- end }}
redis:
host: {{ .redis.host }}
Expand Down
27 changes: 16 additions & 11 deletions charts/spar/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ kind: ConfigMap
metadata:
name: "spar"
data:
{{- with .Values.config }}
spar.yaml: |
logNetStrings: True # log using netstrings encoding (see http://cr.yp.to/proto/netstrings.txt)
logLevel: {{ .Values.config.logLevel }}
logLevel: {{ .logLevel }}
brig:
host: brig
Expand All @@ -17,25 +18,29 @@ data:
cassandra:
endpoint:
host: {{ .Values.config.cassandra.host }}
host: {{ .cassandra.host }}
port: 9042
keyspace: spar
{{- if hasKey .cassandra "filterNodesByDatacentre" }}
filterNodesByDatacentre: {{ .cassandra.filterNodesByDatacentre }}
{{- end }}
maxttlAuthreq: {{ .Values.config.maxttlAuthreq }}
maxttlAuthresp: {{ .Values.config.maxttlAuthresp }}
maxttlAuthreq: {{ .maxttlAuthreq }}
maxttlAuthresp: {{ .maxttlAuthresp }}
richInfoLimit: {{ .Values.config.richInfoLimit }}
richInfoLimit: {{ .richInfoLimit }}
maxScimTokens: {{ .Values.config.maxScimTokens }}
maxScimTokens: {{ .maxScimTokens }}
saml:
version: SAML2.0
logLevel: {{ .Values.config.logLevel }}
logLevel: {{ .logLevel }}
spHost: 0.0.0.0
spPort: {{ .Values.service.externalPort }}
spAppUri: {{ .Values.config.appUri }}
spSsoUri: {{ .Values.config.ssoUri }}
spPort: {{ $.Values.service.externalPort }}
spAppUri: {{ .appUri }}
spSsoUri: {{ .ssoUri }}
contacts:
{{ toYaml .Values.config.contacts | indent 12 }}
{{ toYaml .contacts | indent 12 }}
{{- end }}

0 comments on commit 9ba1c3b

Please sign in to comment.