Ver código fonte

storj - add zksync-era (#1792)

Stavros Kois 1 ano atrás
pai
commit
6f943226f4

+ 1 - 1
library/ix-dev/charts/storj/Chart.yaml

@@ -3,7 +3,7 @@ description: Share your storage on the internet and earn.
 annotations:
   title: Storj
 type: application
-version: 1.0.16
+version: 1.0.17
 apiVersion: v2
 appVersion: v1.68.2
 kubeVersion: '>=1.16.0-0'

+ 1 - 0
library/ix-dev/charts/storj/ci/test-values.yaml

@@ -22,3 +22,4 @@ storageSize: 500
 wallet: 0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 webPort: 30000
 zksync: true
+zksyncEra: true

+ 9 - 1
library/ix-dev/charts/storj/questions.yaml

@@ -101,7 +101,15 @@ questions:
 
   - variable: zksync
     label: "Opt-in to zkSync"
-    description: Appends --operator.wallet-features=zksync flag to the storagenode command
+    description: Appends "zksync" to --operator.wallet-features flag to the storagenode command
+    group: "Configuration"
+    schema:
+      type: boolean
+      default: false
+
+  - variable: zksyncEra
+    label: "Opt-in to zkSync era"
+    description: Appends "zksync-era" to --operator.wallet-features flag to the storagenode command
     group: "Configuration"
     schema:
       type: boolean

+ 9 - 2
library/ix-dev/charts/storj/templates/deployment.yaml

@@ -78,9 +78,16 @@ spec:
             - name: udp
               containerPort: 28967
               protocol: UDP
-          {{ if .Values.zksync }}
+          {{- $walletFeats := list -}}
+          {{- if .Values.zksync }}
+            {{- $walletFeats = mustAppend $walletFeats "zksync" -}}
+          {{- end -}}
+          {{ if .Values.zksyncEra }}
+            {{- $walletFeats = mustAppend $walletFeats "zksync-era" -}}
+          {{- end -}}
+          {{- if $walletFeats }}
           args:
-            - --operator.wallet-features=zksync
+            - --operator.wallet-features={{ join "," $walletFeats }}
           {{ end }}
           env:
             {{ $envList := (default list .Values.environmentVariables) }}