Skip to content

Commit

Permalink
Merge pull request #7 from gandazgul/add_EST_timezone_to_cronjob_sett…
Browse files Browse the repository at this point in the history
…ings

- added EST timezone to cronjobs
  • Loading branch information
gandazgul authored Nov 27, 2018
2 parents dc9d0fd + 5cd92a5 commit 73f97de
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 28 deletions.
9 changes: 7 additions & 2 deletions charts/cronjob/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ spec:
spec:
template:
spec:
{{- if .Values.volumes }}
volumes:
- name: tz-config
hostPath:
path: /usr/share/zoneinfo/America/New_York
{{- if .Values.volumes }}
{{ toYaml .Values.volumes | indent 12 }}
{{- end}}
{{- if .Values.initContainer.enabled }}
Expand All @@ -27,8 +30,10 @@ spec:
args:
{{ toYaml .Values.initContainer.args | indent 16 }}
{{- end }}
{{- if .Values.volumeMounts }}
volumeMounts:
- name: tz-config
mountPath: /etc/localtime
{{- if .Values.volumeMounts }}
{{ toYaml .Values.initContainer.volumeMounts | indent 16 }}
{{- end }}
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions helmfile.d/40-seedbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ releases:
- name: dev-tun
hostPath:
path: "/dev/net/tun"
- name: tz-config
hostPath:
path: /usr/share/zoneinfo/America/New_York
- volumeMounts:
- name: main-volume
mountPath: "/main"
Expand All @@ -85,3 +88,5 @@ releases:
- name: yasr-volume
mountPath: "/etc/ssmtp/"
subPath: "configs/ssmtp"
- name: tz-config
mountPath: /etc/localtime
51 changes: 25 additions & 26 deletions rafag.d/70-cronjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,31 @@ helmDefaults:
force: true

releases:
- name: media-sort
namespace: services
chart: ../charts/cronjob
values:
# Every Tues@3:28
- schedule: "28 3 * * 2"
- image:
repository: rafaelgil83/phockup
tag: latest
- env:
- name: UID
value: "1000"
- name: GUID
value: "1000"
- volumes:
- name: main-volume
persistentVolumeClaim:
claimName: main-volume
- volumeMounts:
- name: main-volume
mountPath: "/source"
subPath: "public/uploaded_photos"
- name: main-volume
mountPath: "/destination"
subPath: "rafag/photos"

- name: media-sort
namespace: services
chart: ../charts/cronjob
values:
# Every Tues@3:28
- schedule: "28 3 * * 2"
- image:
repository: rafaelgil83/phockup
tag: latest
- env:
- name: UID
value: "1000"
- name: GUID
value: "1000"
- volumes:
- name: main-volume
persistentVolumeClaim:
claimName: main-volume
- volumeMounts:
- name: main-volume
mountPath: "/source"
subPath: "public/uploaded_photos"
- name: main-volume
mountPath: "/destination"
subPath: "rafag/photos"

- name: folder-cleaner
namespace: services
Expand Down

0 comments on commit 73f97de

Please sign in to comment.