Skip to content

Commit

Permalink
fix(chart): mount the secrets-store volume
Browse files Browse the repository at this point in the history
The volume needs to be mounted in order for secrets-store.csi.k8s.io
to work and environment vars with secrets to be created.
  • Loading branch information
bfabio committed May 25, 2024
1 parent a94f099 commit 2200c48
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/publiccode-crawler/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ spec:
args:
- crawl

volumeMounts:
- mountPath: /secrets-store
name: secrets-store

resources:
{{- toYaml .Values.resources | indent 14 }}
env:
Expand All @@ -50,3 +54,11 @@ spec:
key: github-token

restartPolicy: Never

volumes:
- name: secrets-store
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: {{ template "publiccode-crawler.fullname" . }}

0 comments on commit 2200c48

Please sign in to comment.