From 2ec174a77d314a91694139b02d848c6424191694 Mon Sep 17 00:00:00 2001 From: Sylvain Decourval Date: Tue, 13 Sep 2022 10:58:43 +0200 Subject: [PATCH] enable standalone tx-sender --- Chart.yaml | 2 +- templates/migration/init-migrate-hook.yaml | 3 ++- templates/tx-listener/service.yaml | 6 +++--- templates/tx-sender/service.yaml | 6 +++--- values.yaml | 4 ++++ 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index 828c25f..323895b 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -3,7 +3,7 @@ apiVersion: v2 description: Helm chart for Orchestrate name: orchestrate type: application -version: 3.0.0 +version: 3.0.1 home: https://docs.orchestrate.consensys.net/ icon: https://docs.orchestrate.consensys.net/en/stable/images/logo.svg maintainers: diff --git a/templates/migration/init-migrate-hook.yaml b/templates/migration/init-migrate-hook.yaml index f83a81c..5b35abd 100644 --- a/templates/migration/init-migrate-hook.yaml +++ b/templates/migration/init-migrate-hook.yaml @@ -1,3 +1,4 @@ +{{- if .Values.api.enabled }} --- apiVersion: batch/v1 kind: Job @@ -46,4 +47,4 @@ spec: name: {{ .Values.api.existingSecret }} optional: true {{- end }} - +{{- end }} \ No newline at end of file diff --git a/templates/tx-listener/service.yaml b/templates/tx-listener/service.yaml index 1e9b1a6..dd005a4 100644 --- a/templates/tx-listener/service.yaml +++ b/templates/tx-listener/service.yaml @@ -10,10 +10,10 @@ metadata: spec: type: {{ .Values.txListener.service.type }} ports: - - port: {{ .Values.txListener.service.metrics.port }} - targetPort: http-metrics + - port: {{ .Values.txListener.service.http.port }} + targetPort: http-svc protocol: TCP - name: http-metrics + name: http-svc selector: {{- include "orchestrate.txListener.selectorLabels" . | nindent 4 }} {{- end }} \ No newline at end of file diff --git a/templates/tx-sender/service.yaml b/templates/tx-sender/service.yaml index 20cc775..1db08d3 100644 --- a/templates/tx-sender/service.yaml +++ b/templates/tx-sender/service.yaml @@ -10,10 +10,10 @@ metadata: spec: type: {{ .Values.txSender.service.type }} ports: - - port: {{ .Values.txSender.service.metrics.port }} - targetPort: http-metrics + - port: {{ .Values.txSender.service.http.port }} + targetPort: http-svc protocol: TCP - name: http-metrics + name: http-svc selector: {{- include "orchestrate.txSender.selectorLabels" . | nindent 4 }} {{- end }} \ No newline at end of file diff --git a/values.yaml b/values.yaml index 1ac2e6c..4a70532 100644 --- a/values.yaml +++ b/values.yaml @@ -132,6 +132,8 @@ txListener: service: type: ClusterIP + http: + port: 8080 metrics: port: 8082 @@ -166,6 +168,8 @@ txSender: service: type: ClusterIP + http: + port: 8080 metrics: port: 8082