diff --git a/library/ix-dev/charts/storj/Chart.yaml b/library/ix-dev/charts/storj/Chart.yaml index 85f31e6b5e..bb0542f965 100644 --- a/library/ix-dev/charts/storj/Chart.yaml +++ b/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' diff --git a/library/ix-dev/charts/storj/ci/test-values.yaml b/library/ix-dev/charts/storj/ci/test-values.yaml index d9b84ede2d..5f75e84923 100644 --- a/library/ix-dev/charts/storj/ci/test-values.yaml +++ b/library/ix-dev/charts/storj/ci/test-values.yaml @@ -22,3 +22,4 @@ storageSize: 500 wallet: 0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX webPort: 30000 zksync: true +zksyncEra: true diff --git a/library/ix-dev/charts/storj/questions.yaml b/library/ix-dev/charts/storj/questions.yaml index d9855e2701..99225f0665 100644 --- a/library/ix-dev/charts/storj/questions.yaml +++ b/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 diff --git a/library/ix-dev/charts/storj/templates/deployment.yaml b/library/ix-dev/charts/storj/templates/deployment.yaml index 6610b9d39a..14da806f41 100644 --- a/library/ix-dev/charts/storj/templates/deployment.yaml +++ b/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) }}