Skip to content

Commit

Permalink
Merge pull request #81 from holaplex/espi/treasuries-charge-credits
Browse files Browse the repository at this point in the history
[Treasuries] Charge Credits for Wallet Creation
  • Loading branch information
kespinola authored May 15, 2023
2 parents 25d2c80 + 1908bb4 commit 0f38240
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/hub-treasuries/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.4
version: 0.3.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
10 changes: 10 additions & 0 deletions charts/hub-treasuries/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metadata:
name: {{ include "hub-treasuries.fullname" . }}
labels:
{{- include "hub-treasuries.labels" . | nindent 4 }}
annotations:
configmap.reloader.stakater.com/reload: {{ .Values.creditSheetName }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
Expand Down Expand Up @@ -47,6 +49,10 @@ spec:
mountPath: /app/secret.key
subPath: secret.key
readOnly: true
- name: credit-sheet
mountPath: /app/credit-sheet.toml
subPath: credit-sheet.toml
readOnly: true
livenessProbe:
httpGet:
path: /health
Expand All @@ -62,6 +68,10 @@ spec:
secret:
secretName: {{ print (include "hub-treasuries.fullname" .) "-privkey" }}
optional: false
- name: credit-sheet
configMap:
name: {{ .Values.creditSheetName }}
optional: false
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions charts/hub-treasuries/templates/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ data:
KAFKA_USERNAME: {{ required "must set kafka username" .kafkaUsername | quote }}
FIREBLOCKS_ENDPOINT: {{ required "must set fireblocks api endpoint" .fireblocksEndpoint | quote }}
FIREBLOCKS_SUPPORTED_ASSET_IDS: {{ .fireblocksSupportedAssetIds | quote }}
CREDIT_SHEET: /app/credit-sheet.toml
{{- end }}
2 changes: 2 additions & 0 deletions charts/hub-treasuries/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ tolerations: []

affinity: {}

creditSheetName: hub-credits-credit-sheet

secrets:
enabled: true
entries:
Expand Down

0 comments on commit 0f38240

Please sign in to comment.