Skip to content

Commit

Permalink
Add chart for claim job
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed Jun 4, 2024
1 parent f83a3c5 commit a4cd041
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
45 changes: 45 additions & 0 deletions eigenlayer-rewards-updater/templates/claim-cron.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{{- if eq .Values.claimJob.enabled true -}}
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ .Values.claimJob.name }}
namespace: {{ .Values.claimJob.namespace }}
labels:
tags.datadoghq.com/env: development
tags.datadoghq.com/version: "0.0.1"
tags.datadoghq.com/service: "{{ .Values.claimJob.name }}"
admission.datadoghq.com/config.mode: "socket"
app: {{ .Values.claimJob.name }}
spec:
schedule: "{{ .Values.claimJob.schedule }}"
jobTemplate:
spec:
template:
metadata:
labels:
tags.datadoghq.com/env: development
tags.datadoghq.com/version: "0.0.1"
tags.datadoghq.com/service: "{{ .Values.claimJob.name }}"
admission.datadoghq.com/enabled: "true"
spec:
restartPolicy: Never
containers:
- name: rewards-updater
image: {{ .Values.claimJob.image.repository }}:{{ .Values.claimJob.image.tag }}
imagePullPolicy: {{ .Values.claimJob.image.pullPolicy }}
args:
- "claim"
volumeMounts:
- name: config-volume
mountPath: "/etc/eigenlayer-rewards-updater/"
readOnly: true
env:
- name: DD_TRACE_SAMPLE_RATE
value: "1.0"
volumes:
- name: config-volume
secret:
secretName: {{ .Values.claimJob.name }}-secret

{{- end -}}
10 changes: 10 additions & 0 deletions eigenlayer-rewards-updater/templates/claim-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- if eq .Values.claimJob.enabled true -}}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.claimJob.name }}-secret
type: Opaque
data:
config.yml: {{ .Values.claimJob.config | b64enc | quote }}
{{- end -}}
21 changes: 21 additions & 0 deletions eigenlayer-rewards-updater/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,24 @@ cronJob:
private_key: ""
proof_store_base_url: "https://eigenpayments-dev.s3.us-east-2.amazonaws.com"
rewards_coordinator_address: ""
claimJob:
enabled: false
schedule: "35 13 * * *"
image:
repository: public.ecr.aws/z6g0f8n7/eigenlayer-rewards-updater
tag: latest
pullPolicy: Always
config: |
debug: true
environment: ""
network: ""
rpc_url: "https://ethereum-holesky-rpc.publicnode.com"
proof_store_base_url: "https://eigenpayments-dev.s3.us-east-2.amazonaws.com"
rewards_coordinator_address: ""
private_key: ""
earner_address: ""
tokens: []
claim_timestamp: 'latest'
submit_claim: true

0 comments on commit a4cd041

Please sign in to comment.