diff --git a/charts/tsm-node/Chart.yaml b/charts/tsm-node/Chart.yaml index 2418356..dfe701f 100644 --- a/charts/tsm-node/Chart.yaml +++ b/charts/tsm-node/Chart.yaml @@ -5,5 +5,5 @@ maintainers: - name: Blockdaemon email: sre@blockdaemon.com type: application -version: 0.1.3 +version: 0.1.4 appVersion: "61.0.2" diff --git a/charts/tsm-node/README.md b/charts/tsm-node/README.md index 4d3cee7..74e4788 100644 --- a/charts/tsm-node/README.md +++ b/charts/tsm-node/README.md @@ -1,6 +1,6 @@ # tsm-node -![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 61.0.2](https://img.shields.io/badge/AppVersion-61.0.2-informational?style=flat-square) +![Version: 0.1.4](https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 61.0.2](https://img.shields.io/badge/AppVersion-61.0.2-informational?style=flat-square) A Helm chart to deploy a Blockdaemon TSM node to kubernetes @@ -17,6 +17,7 @@ A Helm chart to deploy a Blockdaemon TSM node to kubernetes | affinity | object | `{}` | | | config.configFile | string | `""` | the TSM configuration file that will be mounted into the TSM node. MUTUALLY EXCLUSIVE with configSecretName | | config.configSecretName | string | `""` | The name of the secret containing the TSM configuration file. MUTUALLY EXCLUSIVE with configFile | +| env | object | `{}` | Environment variables to be passed to the TSM node deployment | | fullnameOverride | string | `""` | | | image.pullPolicy | string | `"IfNotPresent"` | | | image.repository | string | `""` | Image to use for deploying the TSM node | diff --git a/charts/tsm-node/ci/envvars-values.yaml b/charts/tsm-node/ci/envvars-values.yaml new file mode 100644 index 0000000..9b29356 --- /dev/null +++ b/charts/tsm-node/ci/envvars-values.yaml @@ -0,0 +1,38 @@ +replicaCount: 1 +index: 0 + +env: + tsm: node + +config: + configFile: | + [Player] + Index = 0 + PrivateKey = "replace me" + + [Database] + DriverName = "sqlite3" + DataSourceName = "/tmp/tsmdb" + EncryptorMasterPassword = "ENCRYPTION_KEY" + + [SDKServer] + Port = 8080 +image: + repository: + pullPolicy: IfNotPresent + tag: "61.0.2" +sdkService: + type: NodePort + ports: + - port: 8080 + name: sdk + targetPort: 8080 + - port: 9000 + name: mpc + targetPort: 9000 + +mpcService: + enabled: false + +ingress: + enabled: false diff --git a/charts/tsm-node/templates/deployment.yaml b/charts/tsm-node/templates/deployment.yaml index 3d538bc..1d6ede5 100644 --- a/charts/tsm-node/templates/deployment.yaml +++ b/charts/tsm-node/templates/deployment.yaml @@ -48,6 +48,13 @@ spec: name: {{ .name }} protocol: TCP {{- end }} + {{- if .Values.env }} + env: + {{- range $key, $value := .Values.env }} + - name: {{ $key }} + value: {{ $value | quote }} + {{- end }} + {{- end }} livenessProbe: httpGet: path: /ping diff --git a/charts/tsm-node/values.yaml b/charts/tsm-node/values.yaml index 69c887a..5aa63cd 100644 --- a/charts/tsm-node/values.yaml +++ b/charts/tsm-node/values.yaml @@ -5,6 +5,9 @@ replicaCount: 1 index: 0 +# -- Environment variables to be passed to the TSM node deployment +env: {} + config: # -- the TSM configuration file that will be mounted into the TSM node. MUTUALLY EXCLUSIVE with configSecretName configFile: ""