Skip to content

Commit

Permalink
Add PVC for --diff mode to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanConnell committed Dec 31, 2023
1 parent aa22838 commit 89610ec
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
7 changes: 6 additions & 1 deletion helm/templates/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
command:
- /bin/sh
- -c
- /bin/concert-watcher -apiKey $TICKETMASTER_API_KEY -artistFile /config/artists -discordWebhookURL $DISCORD_WEBHOOK_URL -ticketmasterConfig /config/ticketmaster.yaml
- /bin/concert-watcher -apiKey $TICKETMASTER_API_KEY -artistFile /config/artists -discordWebhookURL $DISCORD_WEBHOOK_URL -ticketmasterConfig /config/ticketmaster.yaml --diff --diffFile /data/previous-ids
env:
- name: "TICKETMASTER_API_KEY"
value: "{{ .Values.ticketmaster.apiKey }}"
Expand All @@ -23,8 +23,13 @@ spec:
volumeMounts:
- name: config-map
mountPath: /config
- name: data
mountPath: /data
volumes:
- name: config-map
configMap:
name: {{ .Values.name }}-config
- name: data
persistentVolumeClaim:
claimName: {{ .Values.name }}-pvc
restartPolicy: Never
13 changes: 13 additions & 0 deletions helm/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.name }}-pvc
labels:
app: {{ .Values.name }}
spec:
storageClassName: {{ .Values.storage.className }}
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.storage.size }}
4 changes: 4 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ discord:

ticketmaster:
apiKey: "{TICKETMASTER_API_KEY_GOES_HERE}"

storage:
className: nfs-client
size: 64Mi

0 comments on commit 89610ec

Please sign in to comment.