Skip to content

Commit

Permalink
secrets can be injected with vault
Browse files Browse the repository at this point in the history
  • Loading branch information
BulatSaif authored Mar 22, 2024
1 parent 3e7a72e commit a8e1306
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/bridges-common-relay/templates/cronjob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ spec:
spec:
restartPolicy: Never
serviceAccountName: {{ include "bridges-common-relay.serviceAccountName" $ }}
{{- if or .Values.secrets .Values.existingSecretName }}
volumes:
- name: secrets
secret:
secretName: {{ include "bridges-common-relay.secretName" $ }}
optional: false
{{- end}}
containers:
- name: bridges-common-relay-{{ $val.name | lower }}-{{ $reward_owner | lower }}
image: node:20.11
Expand Down Expand Up @@ -73,10 +75,12 @@ spec:
tx.bridgeRelayers.claimRewards "$rewards_account_params"
resources:
{{- toYaml $.Values.resources | nindent 16 }}
{{- if or .Values.secrets .Values.existingSecretName }}
volumeMounts:
- name: secrets
mountPath: "/secrets"
readOnly: true
{{- end}}
---
{{- end }}
{{- end }}

0 comments on commit a8e1306

Please sign in to comment.