-
Notifications
You must be signed in to change notification settings - Fork 149
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 #772 from amazeeio/restic-backup-support
add restic backup support:
- Loading branch information
Showing
8 changed files
with
84 additions
and
7 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
55 changes: 55 additions & 0 deletions
55
images/oc-build-deploy-dind/openshift-templates/backup/schedule.yml
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,55 @@ | ||
apiVersion: v1 | ||
kind: Template | ||
metadata: | ||
creationTimestamp: null | ||
name: lagoon-openshift-template-schedule | ||
parameters: | ||
- name: SERVICE_NAME | ||
description: Name of this service | ||
required: true | ||
- name: SAFE_BRANCH | ||
description: Which branch this belongs to, special chars replaced with dashes | ||
required: true | ||
- name: SAFE_PROJECT | ||
description: Which project this belongs to, special chars replaced with dashes | ||
required: true | ||
- name: BRANCH | ||
description: Which branch this belongs to, original value | ||
required: true | ||
- name: PROJECT | ||
description: Which project this belongs to, original value | ||
required: true | ||
- name: LAGOON_GIT_SHA | ||
description: git hash sha of the current deployment | ||
required: true | ||
- name: SERVICE_ROUTER_URL | ||
description: URL of the Router for this service | ||
value: "" | ||
- name: OPENSHIFT_PROJECT | ||
description: Name of the Project that this service is in | ||
required: true | ||
- name: REGISTRY | ||
description: Registry where Images are pushed to | ||
required: true | ||
- name: BACKUP_SCHEDULE | ||
description: Schedule of the Backup in Cron format | ||
required: true | ||
- name: PRUNE_SCHEDULE | ||
description: Schedule of the Pruning in Cron format | ||
required: true | ||
objects: | ||
- apiVersion: backup.appuio.ch/v1alpha1 | ||
kind: Schedule | ||
metadata: | ||
name: backup-schedule | ||
spec: | ||
backup: | ||
keepJobs: 2 | ||
schedule: '${BACKUP_SCHEDULE}' | ||
check: | ||
schedule: 0 0 * * 0 | ||
prune: | ||
retention: | ||
keepDaily: 7 | ||
keepWeekly: 4 | ||
schedule: '${PRUNE_SCHEDULE}' |
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
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
6 changes: 0 additions & 6 deletions
6
images/oc-build-deploy-dind/scripts/exec-openshift-create-pvc.sh
This file was deleted.
Oops, something went wrong.