Skip to content

Commit 5360f88

Browse files
committed
combine recipe template into one workflow yaml
Signed-off-by: YuChen <[email protected]>
1 parent 9d766d2 commit 5360f88

File tree

4 files changed

+44
-39
lines changed

4 files changed

+44
-39
lines changed

velero/spectrum-fusion/license-service-reporter/application.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

velero/spectrum-fusion/license-service-reporter/recipe.yaml renamed to velero/spectrum-fusion/license-service-reporter/backup-restore-workflow.yaml

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
apiVersion: application.isf.ibm.com/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: lsr-application
5+
namespace: ibm-spectrum-fusion-ns
6+
spec:
7+
enableDR: false
8+
includedNamespaces:
9+
- <lsr namespace>
10+
- openshift-marketplace
11+
- openshift-config
12+
---
13+
14+
apiVersion: data-protection.isf.ibm.com/v1alpha1
15+
kind: BackupPolicy
16+
metadata:
17+
name: lsr-backup-policy
18+
spec:
19+
backupStorageLocation: <storage_location>
20+
provider: isf-backup-restore
21+
retention:
22+
number: 5
23+
unit: days
24+
schedule:
25+
cron: '00 0 * * * '
26+
timezone: America/New_York
27+
---
28+
129
apiVersion: spp-data-protection.isf.ibm.com/v1alpha1
230
kind: Recipe
331
metadata:
@@ -106,8 +134,22 @@ spec:
106134
- group: common-services-catalogs
107135
- group: common-services-operatorgroups
108136
- group: license-service-reporter-crd
137+
- group: license-service-reporter-instances
109138
- group: license-service-reporter-subscriptions
110139
- hook: license-service-reporter-check/podReady
111-
- group: license-service-reporter-instances
112140
- hook: license-service-reporter-instance-check/podReady
113-
141+
---
142+
143+
apiVersion: data-protection.isf.ibm.com/v1alpha1
144+
kind: PolicyAssignment
145+
metadata:
146+
name: lsr-policy-assignment
147+
namespace: ibm-spectrum-fusion-ns
148+
spec:
149+
application: lsr-application
150+
backupPolicy: lsr-backup-policy
151+
runNow: false
152+
recipe:
153+
apiVersion: spp-data-protection.isf.ibm.com/v1alpha1
154+
name: lsr-recipe
155+
namespace: ibm-spectrum-fusion-ns

velero/spectrum-fusion/license-service-reporter/policy.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

velero/spectrum-fusion/license-service-reporter/policy_assignment.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)