-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add tests for LAGOON_BACKUP_PROD_SCHEDULE
- Loading branch information
1 parent
7ad87f8
commit c6c46f5
Showing
4 changed files
with
100 additions
and
2 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
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
42 changes: 42 additions & 0 deletions
42
internal/testdata/node/backup-templates/backup-9/k8up-lagoon-backup-schedule.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,42 @@ | ||
--- | ||
apiVersion: backup.appuio.ch/v1alpha1 | ||
kind: Schedule | ||
metadata: | ||
annotations: | ||
lagoon.sh/branch: main | ||
lagoon.sh/version: v2.7.x | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/instance: k8up-lagoon-backup-schedule | ||
app.kubernetes.io/managed-by: build-deploy-tool | ||
app.kubernetes.io/name: k8up-schedule | ||
lagoon.sh/buildType: branch | ||
lagoon.sh/environment: main | ||
lagoon.sh/environmentType: production | ||
lagoon.sh/project: example-project | ||
lagoon.sh/service: k8up-lagoon-backup-schedule | ||
lagoon.sh/service-type: k8up-schedule | ||
lagoon.sh/template: k8up-schedule-0.1.0 | ||
name: k8up-lagoon-backup-schedule | ||
spec: | ||
backend: | ||
repoPasswordSecretRef: | ||
key: repo-pw | ||
name: baas-repo-pw | ||
s3: | ||
bucket: baas-example-project | ||
backup: | ||
resources: {} | ||
schedule: 2,21 22 * * * | ||
check: | ||
resources: {} | ||
schedule: 48 5 * * 1 | ||
prune: | ||
resources: {} | ||
retention: | ||
keepDaily: 7 | ||
keepMonthly: 1 | ||
keepWeekly: 6 | ||
schedule: 48 3 * * 0 | ||
resourceRequirementsTemplate: {} | ||
status: {} |