From d3bf0ad4661dbb43744d847dccc95c4aadafe5ab Mon Sep 17 00:00:00 2001 From: harry <53987565+h5law@users.noreply.github.com> Date: Fri, 28 Jul 2023 21:58:11 +0100 Subject: [PATCH] [IBC] Enable validators and thus IBC host creation in K8s (#942) --- build/localnet/manifests/cli-client.yaml | 5 +++++ charts/pocket/README.md | 1 + charts/pocket/templates/statefulset.yaml | 5 +++++ charts/pocket/values.yaml | 2 ++ 4 files changed, 13 insertions(+) diff --git a/build/localnet/manifests/cli-client.yaml b/build/localnet/manifests/cli-client.yaml index c173910aa..da85d5a62 100644 --- a/build/localnet/manifests/cli-client.yaml +++ b/build/localnet/manifests/cli-client.yaml @@ -57,6 +57,11 @@ spec: secretKeyRef: name: validators-private-keys key: "001" + - name: POCKET_IBC_HOST_PRIVATE_KEY + valueFrom: + secretKeyRef: + name: validators-private-keys + key: "001" - name: POSTGRES_USER value: "postgres" - name: POSTGRES_PASSWORD diff --git a/charts/pocket/README.md b/charts/pocket/README.md index c12c8d48e..bbac55a3d 100644 --- a/charts/pocket/README.md +++ b/charts/pocket/README.md @@ -77,6 +77,7 @@ privateKeySecretKeyRef: | config.telemetry.endpoint | string | `"/metrics"` | | | config.utility.max_mempool_transaction_bytes | int | `1073741824` | | | config.utility.max_mempool_transactions | int | `9000` | | +| config.validator.enabled | bool | `true` | | | externalPostgresql.database | string | `""` | name of the external database | | externalPostgresql.enabled | bool | `false` | use external postgres database | | externalPostgresql.host | string | `""` | host of the external database | diff --git a/charts/pocket/templates/statefulset.yaml b/charts/pocket/templates/statefulset.yaml index 4be68b50b..ef2d21a30 100644 --- a/charts/pocket/templates/statefulset.yaml +++ b/charts/pocket/templates/statefulset.yaml @@ -81,6 +81,11 @@ spec: secretKeyRef: name: {{ .Values.privateKeySecretKeyRef.name | quote }} key: {{ .Values.privateKeySecretKeyRef.key | quote }} + - name: POCKET_IBC_HOST_PRIVATE_KEY + valueFrom: + secretKeyRef: + name: {{ .Values.privateKeySecretKeyRef.name | quote }} + key: {{ .Values.privateKeySecretKeyRef.key | quote }} {{ end }} - name: POSTGRES_USER {{ include "pocket.postgresqlUserValueOrSecretRef" . | nindent 14 }} diff --git a/charts/pocket/values.yaml b/charts/pocket/values.yaml index 31d4b03cc..9587814c7 100644 --- a/charts/pocket/values.yaml +++ b/charts/pocket/values.yaml @@ -113,6 +113,8 @@ config: port: "50832" timeout: 30000 use_cors: false + validator: + enabled: true servicer: enabled: false fisherman: