Skip to content

Commit

Permalink
Add crontab variable
Browse files Browse the repository at this point in the history
  • Loading branch information
netflash committed Jun 26, 2017
1 parent 08ebebe commit d3b7396
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 2 deletions.
2 changes: 2 additions & 0 deletions seal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
strata*
README.strata.md
1 change: 0 additions & 1 deletion seal/README

This file was deleted.

9 changes: 9 additions & 0 deletions seal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Deploy

helm install --dry-run --name seal-morning -f morning.yaml --debug ../seal
helm install --dry-run --name seal-afternoon -f afternoon.yaml --debug ../seal


helm install --name seal-morning -f morning.yaml ../seal
helm install --name seal-afternoon -f afternoon.yaml ../seal

24 changes: 24 additions & 0 deletions seal/afternoon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
crontab: "0 14 * * *"
image:
repository: quay.io/strataconsulting/seal:helm
imagePullPolicy: Always
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
seal:
seal_organisation: "org"
github_token: "token"
slack_webhook: "webhook"
dyno: "true"
slack_channel: "#channel"
github_members: "user1,user2"
github_use_labels: "true"
github_exclude_labels: "[DO NOT MERGE],Don't merge,DO NOT MERGE,Waiting on factcheck,wip"
seal_quotes: "Everyone should have the opportunity to learn. Don’t be afraid to pick up stories on things you don’t understand and ask for help with them.,Try to pair when possible."
dry_run: true
24 changes: 24 additions & 0 deletions seal/morning.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
crontab: "0 6 * * *"
image:
repository: quay.io/strataconsulting/seal:helm
imagePullPolicy: Always
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
seal:
seal_organisation: "org"
github_token: "token"
slack_webhook: "webhook"
dyno: "true"
slack_channel: "#channel"
github_members: "user1,user2"
github_use_labels: "true"
github_exclude_labels: "[DO NOT MERGE],Don't merge,DO NOT MERGE,Waiting on factcheck,wip"
seal_quotes: "Everyone should have the opportunity to learn. Don’t be afraid to pick up stories on things you don’t understand and ask for help with them.,Try to pair when possible."
dry_run: true
2 changes: 1 addition & 1 deletion seal/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
schedule: "30 15 * * *"
schedule: {{- if .Values.crontab }} {{ .Values.crontab }} {{ else }} "0 14 * * *" {{ end }}
jobTemplate:
spec:
activeDeadlineSeconds: 100
Expand Down
1 change: 1 addition & 0 deletions seal/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
crontab: "0 15 * * *"
image:
repository: quay.io/strataconsulting/seal:helm
imagePullPolicy: Always
Expand Down

0 comments on commit d3b7396

Please sign in to comment.