From 421785c00179ec21294fd24635dde7cd60446b0f Mon Sep 17 00:00:00 2001 From: antares-sw <23400824+antares-sw@users.noreply.github.com> Date: Fri, 10 Nov 2023 16:11:54 +0300 Subject: [PATCH] Update oracle (#474) --- charts/v3-oracle/Chart.yaml | 4 ++-- charts/v3-oracle/templates/configmap.yaml | 4 ++++ charts/v3-oracle/templates/secret.yaml | 2 ++ charts/v3-oracle/templates/statefulset.yaml | 14 ++++++++++++++ charts/v3-oracle/values.yaml | 6 ++++-- 5 files changed, 26 insertions(+), 4 deletions(-) diff --git a/charts/v3-oracle/Chart.yaml b/charts/v3-oracle/Chart.yaml index 5e1c3dd0c..5478efa41 100644 --- a/charts/v3-oracle/Chart.yaml +++ b/charts/v3-oracle/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: v3-oracle -version: 3.2.4 -appVersion: v0.5.1 +version: 3.2.5 +appVersion: v1.0.1 kubeVersion: "^1.14.0-0" description: The StakeWise application for submitting off-chain data to smart contracts. type: application diff --git a/charts/v3-oracle/templates/configmap.yaml b/charts/v3-oracle/templates/configmap.yaml index ff3eedfdc..f5220d436 100644 --- a/charts/v3-oracle/templates/configmap.yaml +++ b/charts/v3-oracle/templates/configmap.yaml @@ -12,6 +12,10 @@ data: IPFS_LOCAL_USERNAME: {{ .Values.settings.ipfsLocalUsername | quote}} IPFS_LOCAL_PASSWORD: {{ .Values.settings.ipfsLocalPassword | quote}} {{- end }} + {{- if .Values.settings.walletSecretName }} + ORACLE_WALLET_PATH: /wallet/wallet.json + ORACLE_WALLET_PASSWORD_PATH: /wallet/password.txt + {{- end }} EXECUTION_ENDPOINT: {{ .Values.settings.executionEndpoint | quote }} CONSENSUS_ENDPOINT: {{ .Values.settings.consensusEndpoint | quote }} CONSENSUS_CLIENT_TIMEOUT: {{ .Values.settings.consensusClientTimeout | quote }} diff --git a/charts/v3-oracle/templates/secret.yaml b/charts/v3-oracle/templates/secret.yaml index 1d4baff29..057fa8a9e 100644 --- a/charts/v3-oracle/templates/secret.yaml +++ b/charts/v3-oracle/templates/secret.yaml @@ -10,7 +10,9 @@ data: IPFS_PINATA_API_KEY: {{ .Values.settings.ipfsPinataApiKey | b64enc | quote }} IPFS_PINATA_SECRET_KEY: {{ .Values.settings.ipfsPinataSecretKey | b64enc | quote }} SENTRY_DSN: {{ .Values.settings.sentryDsn | b64enc | quote }} + {{- if .Values.settings.walletPrivateKey }} ORACLE_WALLET_PRIVATE_KEY: {{ .Values.settings.walletPrivateKey | b64enc | quote }} + {{- end }} IPFS_INFURA_CLIENT_USERNAME: {{ .Values.settings.ipfsInfuraClientUsername | b64enc | quote }} IPFS_INFURA_CLIENT_PASSWORD: {{ .Values.settings.ipfsInfuraClientPassword | b64enc | quote }} IPFS_WEB3STORAGE_TOKEN: {{ .Values.settings.ipfsWeb3StorageToken | b64enc | quote }} diff --git a/charts/v3-oracle/templates/statefulset.yaml b/charts/v3-oracle/templates/statefulset.yaml index 1ef0d4da3..89a14edd6 100644 --- a/charts/v3-oracle/templates/statefulset.yaml +++ b/charts/v3-oracle/templates/statefulset.yaml @@ -68,6 +68,10 @@ spec: volumeMounts: - name: data mountPath: /data + {{- if .Values.settings.walletSecretName }} + - name: wallet + mountPath: /wallet + {{- end }} {{- with .Values.resources }} resources: {{ toYaml . | nindent 12 | trim }} @@ -87,10 +91,20 @@ spec: volumeMounts: - name: data mountPath: /data + {{- if .Values.settings.walletSecretName }} + - name: wallet + mountPath: /wallet + {{- end }} {{- with .Values.resources }} resources: {{ toYaml . | nindent 12 | trim }} {{- end }} + {{- if .Values.settings.walletSecretName }} + volumes: + - name: wallet + secret: + secretName: {{ .Values.settings.walletSecretName }} + {{- end}} volumeClaimTemplates: - metadata: name: data diff --git a/charts/v3-oracle/values.yaml b/charts/v3-oracle/values.yaml index 2cf1a199f..23e7c0b06 100644 --- a/charts/v3-oracle/values.yaml +++ b/charts/v3-oracle/values.yaml @@ -52,7 +52,7 @@ serviceAccount: image: registry: "europe-west4-docker.pkg.dev" repository: "stakewiselabs/public/v3-oracle" - tag: "v0.5.3" + tag: "v1.0.1" pullPolicy: IfNotPresent pullSecrets: [ ] @@ -103,7 +103,9 @@ settings: ## network: "mainnet" - walletPrivateKey: "" + # Specify wallet private key or secret name with wallet.json and password.txt + walletPrivateKey: "" + walletSecretName: "" sentryDsn: "" validatorsWithdrawalsConcurrency: "20"