-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from ropable/master
Add Kustomize prod overlays, update GH workflows, remove LoggedPointResource
- Loading branch information
Showing
19 changed files
with
260 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
# Workflow files stored in the | ||
# default location of `.github/workflows` | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,4 @@ spec: | |
emptyDir: | ||
medium: "Memory" | ||
restartPolicy: Always | ||
terminationGracePeriodSeconds: 180 |
7 changes: 7 additions & 0 deletions
7
kustomize/overlays/prod/cronjobs/harvest-email-dplus/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../../../template | ||
nameSuffix: -harvest-dplus | ||
patches: | ||
- path: patch.yaml |
35 changes: 35 additions & 0 deletions
35
kustomize/overlays/prod/cronjobs/harvest-email-dplus/patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: resourcetracking-cronjob | ||
spec: | ||
schedule: "* * * * *" | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: resourcetracking-cronjob | ||
imagePullPolicy: IfNotPresent | ||
args: ["manage.py", "harvest_tracking_email", "--device-type", "dplus", "--purge-email"] | ||
env: | ||
- name: DATABASE_URL | ||
valueFrom: | ||
secretKeyRef: | ||
name: resourcetracking-env-prod | ||
key: DATABASE_URL | ||
- name: EMAIL_HOST | ||
valueFrom: | ||
secretKeyRef: | ||
name: resourcetracking-env-prod | ||
key: EMAIL_HOST | ||
- name: EMAIL_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: resourcetracking-env-prod | ||
key: EMAIL_USER | ||
- name: EMAIL_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: resourcetracking-env-prod | ||
key: EMAIL_PASSWORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
kustomize/overlays/uat/cronjobs/harvest-email-dplus/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../../../template | ||
nameSuffix: -harvest-email-dplus | ||
patches: | ||
- path: patch.yaml |
34 changes: 34 additions & 0 deletions
34
kustomize/overlays/uat/cronjobs/harvest-email-dplus/patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: resourcetracking-cronjob | ||
spec: | ||
schedule: "* * * * *" | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: resourcetracking-cronjob | ||
args: ["manage.py", "harvest_tracking_email", "--device-type", "dplus"] | ||
env: | ||
- name: DATABASE_URL | ||
valueFrom: | ||
secretKeyRef: | ||
name: resourcetracking-env-uat | ||
key: DATABASE_URL | ||
- name: EMAIL_HOST | ||
valueFrom: | ||
secretKeyRef: | ||
name: resourcetracking-env-uat | ||
key: EMAIL_HOST | ||
- name: EMAIL_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: resourcetracking-env-uat | ||
key: EMAIL_USER | ||
- name: EMAIL_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: resourcetracking-env-uat | ||
key: EMAIL_PASSWORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.