Skip to content

Commit

Permalink
Update oracle (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
antares-sw authored Nov 10, 2023
1 parent 300f6b1 commit 421785c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/v3-oracle/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions charts/v3-oracle/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/v3-oracle/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
14 changes: 14 additions & 0 deletions charts/v3-oracle/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
6 changes: 4 additions & 2 deletions charts/v3-oracle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [ ]

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 421785c

Please sign in to comment.