Skip to content

Commit

Permalink
Update operator scheme (#404)
Browse files Browse the repository at this point in the history
* Update operator scheme

* Fix

* Fix
  • Loading branch information
antares-sw authored Jun 29, 2023
1 parent b2e8390 commit 98b80ee
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/v3-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: v3-operator
version: 3.0.6
version: 3.0.7
appVersion: v0.1.7
kubeVersion: "^1.14.0-0"
description: Operator hosted service for Stakewise V3 protocol.
Expand Down
3 changes: 2 additions & 1 deletion charts/v3-operator/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ data:
VAULT_CONTRACT_ADDRESS: {{ .Values.settings.vaultContractAddress | quote }}
EXECUTION_ENDPOINT: {{ .Values.settings.executionEndpoint | quote }}
CONSENSUS_ENDPOINT: {{ .Values.settings.consensusEndpoint | quote }}
KEYSTORES_PASSWORD_PATH: {{ .Values.settings.keystoresPasswordPath | quote }}
KEYSTORES_PASSWORD_FILE: {{ .Values.settings.keystoresPasswordFile | quote }}
KEYSTORES_PATH: {{ .Values.settings.keystoresPath | quote }}
DEPOSIT_DATA_PATH: {{ .Values.settings.depositDataPath | quote }}
DEPOSIT_DATA: {{ .Values.settings.depositData | quote }}
METRICS_HOST: {{ .Values.serviceMonitor.host | quote }}

{{- if .Values.settings.depositData }}
---
Expand Down
5 changes: 5 additions & 0 deletions charts/v3-operator/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ spec:
- name: v3-operator
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- python
args:
- src/main.py
- start
envFrom:
- configMapRef:
name: {{ include "common.names.fullname" . }}
Expand Down
8 changes: 7 additions & 1 deletion charts/v3-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ affinity: { }
##
tolerations: [ ]

service:
type: ClusterIP
ports:
http: 9100

serviceAccount:
## Annotations to add to the service account
##
Expand Down Expand Up @@ -83,7 +88,7 @@ settings:
consensusEndpoint: ""

# Absolute path to the password file for decrypting keystores
keystoresPasswordPath: "/password/password.txt"
keystoresPasswordFile: "/password/password.txt"
# Password for keystores
# Optional if used from secrets.
keystoresPassword: ""
Expand Down Expand Up @@ -146,6 +151,7 @@ persistence:
##
serviceMonitor:
enabled: false
host: 0.0.0.0
## The namespace in which the ServiceMonitor will be created
##
namespace: ""
Expand Down

0 comments on commit 98b80ee

Please sign in to comment.