diff --git a/seal/.gitignore b/seal/.gitignore new file mode 100644 index 00000000..72892aed --- /dev/null +++ b/seal/.gitignore @@ -0,0 +1,2 @@ +strata* +README.strata.md diff --git a/seal/README b/seal/README deleted file mode 100644 index a0990367..00000000 --- a/seal/README +++ /dev/null @@ -1 +0,0 @@ -TBD diff --git a/seal/README.md b/seal/README.md new file mode 100644 index 00000000..13ec79b5 --- /dev/null +++ b/seal/README.md @@ -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 + diff --git a/seal/afternoon.yaml b/seal/afternoon.yaml new file mode 100644 index 00000000..6a7456fe --- /dev/null +++ b/seal/afternoon.yaml @@ -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 diff --git a/seal/morning.yaml b/seal/morning.yaml new file mode 100644 index 00000000..ea9fbf7f --- /dev/null +++ b/seal/morning.yaml @@ -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 diff --git a/seal/templates/cronjob.yaml b/seal/templates/cronjob.yaml index f240ecf9..e1374a7c 100644 --- a/seal/templates/cronjob.yaml +++ b/seal/templates/cronjob.yaml @@ -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 diff --git a/seal/values.yaml b/seal/values.yaml index ae2b8e14..b4abfd44 100644 --- a/seal/values.yaml +++ b/seal/values.yaml @@ -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