Skip to content

Commit 57a85fb

Browse files
authored
Merge pull request #635 from CodeForPhilly/cron_test
cron test -> 2..62
2 parents a3c2555 + bbce1d5 commit 57a85fb

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: batch/v1
2+
kind: CronJob
3+
metadata:
4+
name: {{ include "my-cronjob-chart.fullname" . }}
5+
labels:
6+
{{- include "my-cronjob-chart.labels" . | nindent 4 }}
7+
spec:
8+
schedule: "{{ .Values.cronJob.schedule }}"
9+
jobTemplate:
10+
spec:
11+
template:
12+
spec:
13+
containers:
14+
- name: {{ .Chart.Name }}
15+
image: "{{ .Values.cronJob.image.repository }}:{{ .Values.cronJob.image.tag | default .Chart.AppVersion }}"
16+
imagePullPolicy: {{ .Values.cronJob.image.pullPolicy }}
17+
command: {{ toYaml .Values.cronJob.command | nindent 18 }}
18+
restartPolicy: OnFailure

src/helm-chart/values.yaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ server:
99
repository: ghcr.io/codeforphilly/paws-data-pipeline/server
1010
pullPolicy: Always
1111
# Overrides the image tag whose default is the chart appVersion.
12-
tag: "2.61"
12+
tag: "2.62"
1313

1414
client:
1515
image:
1616
repository: ghcr.io/codeforphilly/paws-data-pipeline/client
1717
pullPolicy: Always
1818
# Overrides the image tag whose default is the chart appVersion.
19-
tag: "2.61"
19+
tag: "2.62"
2020

2121
db:
2222
image:
@@ -105,15 +105,3 @@ tolerations: []
105105

106106
affinity: {}
107107

108-
jobs:
109-
- name: minute-cron
110-
concurrencyPolicy: Forbid
111-
schedule: "*/1 * * * *"
112-
image: curlimages/curl
113-
imagePullPolicy: IfNotPresent
114-
command: ["/bin/bash"]
115-
116-
args:
117-
- "-c"
118-
- "curl http://paws-compose-server:5000/api/internal/test"
119-
restartPolicy: OnFailure

0 commit comments

Comments
 (0)