Modify deployment tooling for manual processing changes (#16)

* Modify deployment tooling for manual processing changes

* Add docker reference
nambrot/fix-polygon-updater-old-root
Nam Chu Hoai 3 years ago committed by GitHub
parent 88f4774725
commit 47ead90aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      rust/helm/optics-agent/templates/processor-statefulset.yaml
  2. 2
      rust/helm/optics-agent/values.yaml
  3. 2
      typescript/optics-deploy/scripts/staging-community/agentConfig.ts
  4. 4
      typescript/optics-deploy/src/agents.ts

@ -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 }}

@ -123,6 +123,8 @@ optics:
hexKey: ""
- name: "alfajores"
hexKey: ""
s3BucketName:
indxonly: false
pollingInterval: # 10
kathy:

@ -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"
}

@ -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 || ''
},
},
};

Loading…
Cancel
Save