Skip to content

Commit

Permalink
[Chore] Add global singleTenantMode global value for SDP and dashboard (
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyliu authored Aug 15, 2024
1 parent 3f16719 commit 662a1e1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dev/env-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ window._env_ = {
STELLAR_EXPERT_URL: "https://stellar.expert/explorer/testnet",
HORIZON_URL: "https://horizon-testnet.stellar.org",
USDC_ASSET_ISSUER: "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5",
RECAPTCHA_SITE_KEY: "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"
RECAPTCHA_SITE_KEY: "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",
SINGLE_TENANT_MODE: false
};
2 changes: 1 addition & 1 deletion helmchart/sdp/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: stellar-disbursement-platform
description: A Helm chart for the Stellar Disbursement Platform Backend (A.K.A. `sdp`)
version: "2.1.0"
version: "2.1.1"
appVersion: "2.1.0"
type: application
maintainers:
Expand Down
1 change: 1 addition & 0 deletions helmchart/sdp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ These parameters are shared by all charts.
| `global.eventBroker.consumerGroupId` | The consumer group ID for the event broker. | `nil` |
| `global.eventBroker.kafka` | Configuration related to the Kafka event broker. | |
| `global.eventBroker.kafka.securityProtocol` | The security protocol to be used for the Kafka broker. Options: "PLAINTEXT", "SASL_SSL", "SASL_PLAINTEXT", "SSL". | `nil` |
| `global.singleTenantMode` | Determines if the SDP service is running in single-tenant mode. | `false` |

### Stellar Disbursement Platform (SDP) parameters

Expand Down
1 change: 1 addition & 0 deletions helmchart/sdp/templates/01.1-configmap-sdp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ data:
CONSUMER_GROUP_ID: {{ .Values.global.eventBroker.consumerGroupId | quote }}
{{- if eq .Values.global.eventBroker.type "KAFKA" }}
KAFKA_SECURITY_PROTOCOL: {{ .Values.global.eventBroker.kafka.securityProtocol | quote }}
SINGLE_TENANT_MODE: {{ .Values.global.singleTenantMode | quote }}
{{- end }}
{{- tpl (toYaml .Values.sdp.configMap.data | nindent 2) . }}
{{- end }}
5 changes: 3 additions & 2 deletions helmchart/sdp/templates/01.4-configmap-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ data:
{{- end }}
{{- if eq (include "isPubnet" .) "true" }}
HORIZON_URL: "https://horizon.stellar.org",
STELLAR_EXPERT_URL: "https://stellar.expert/explorer/pubnet"
STELLAR_EXPERT_URL: "https://stellar.expert/explorer/pubnet",
{{- else }}
HORIZON_URL: "https://horizon-testnet.stellar.org",
STELLAR_EXPERT_URL: "https://stellar.expert/explorer/testnet"
STELLAR_EXPERT_URL: "https://stellar.expert/explorer/testnet",
{{- end }}
SINGLE_TENANT_MODE: {{ .Values.global.singleTenantMode }}
};
{{- end }}
3 changes: 3 additions & 0 deletions helmchart/sdp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ global:
kafka:
securityProtocol: #required

## @param global.singleTenantMode Determines if the SDP service is running in single-tenant mode.
singleTenantMode: false

# =========================== START sdp ===========================
## @section Stellar Disbursement Platform (SDP) parameters
## @descriptionStart
Expand Down

0 comments on commit 662a1e1

Please sign in to comment.