From 47ead90aacd4096b308d1e62e82cdb702e6a804c Mon Sep 17 00:00:00 2001 From: Nam Chu Hoai Date: Fri, 21 Jan 2022 14:08:07 -0800 Subject: [PATCH] Modify deployment tooling for manual processing changes (#16) * Modify deployment tooling for manual processing changes * Add docker reference --- .../optics-agent/templates/processor-statefulset.yaml | 8 ++++++++ rust/helm/optics-agent/values.yaml | 2 ++ .../scripts/staging-community/agentConfig.ts | 2 +- typescript/optics-deploy/src/agents.ts | 4 ++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/rust/helm/optics-agent/templates/processor-statefulset.yaml b/rust/helm/optics-agent/templates/processor-statefulset.yaml index 8671c19b1..90cc78d4d 100644 --- a/rust/helm/optics-agent/templates/processor-statefulset.yaml +++ b/rust/helm/optics-agent/templates/processor-statefulset.yaml @@ -54,6 +54,14 @@ spec: {{- if .Values.optics.processor.pollingInterval }} - name: OPT_PROCESSOR_INTERVAL value: {{ .Values.optics.processor.pollingInterval | quote }} + - name: OPT_PROCESSOR_INDEXON + value: {{ .Values.optics.processor.indexon | quote }} + {{- if .hexKey }} + - name: OPT_PROCESSOR_S3_BUCKET + value: {{ .Values.optics.processor.s3BucketName }} + - name: OPT_PROCESSOR_S3_REGION + value: {{ .aws.region }} + {{- end }} {{- end }} {{- range .Values.optics.processor.transactionSigners }} {{- if .hexKey }} diff --git a/rust/helm/optics-agent/values.yaml b/rust/helm/optics-agent/values.yaml index cfcc450a8..d7ea388bf 100644 --- a/rust/helm/optics-agent/values.yaml +++ b/rust/helm/optics-agent/values.yaml @@ -123,6 +123,8 @@ optics: hexKey: "" - name: "alfajores" hexKey: "" + s3BucketName: + indxonly: false pollingInterval: # 10 kathy: diff --git a/typescript/optics-deploy/scripts/staging-community/agentConfig.ts b/typescript/optics-deploy/scripts/staging-community/agentConfig.ts index da70cf8c1..81f31225b 100644 --- a/typescript/optics-deploy/scripts/staging-community/agentConfig.ts +++ b/typescript/optics-deploy/scripts/staging-community/agentConfig.ts @@ -22,5 +22,5 @@ export const agentConfig: AgentConfig = { awsKeyId: process.env.AWS_KEY_ID!, awsSecretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!, dockerImageRepo: "gcr.io/clabs-optics/optics-agent", - dockerImageTag: "staging-community" + dockerImageTag: "3594c7d715f0ad1def2b36cb0e29649e1f6712e6" } diff --git a/typescript/optics-deploy/src/agents.ts b/typescript/optics-deploy/src/agents.ts index d51a19c91..d32b4476c 100644 --- a/typescript/optics-deploy/src/agents.ts +++ b/typescript/optics-deploy/src/agents.ts @@ -11,6 +11,8 @@ export interface AgentConfig { awsRegion?: string; awsKeyId?: string; awsSecretAccessKey?: string; + processorIndexOnly?: boolean; + processorS3Bucket?: string; dockerImageRepo: string; dockerImageTag: string; } @@ -250,6 +252,8 @@ async function helmValuesForChain( name: configs[chain].name, ...credentials(KEY_ROLE_ENUM.ProcessorSigner), })), + indexonly: agentConfig.processorIndexOnly || false, + s3BucketName: agentConfig.processorS3Bucket || '' }, }, };