Skip to content

Commit 9433957

Browse files
author
YuChen
committed
Add UMS child recipe
Signed-off-by: YuChen <yuchen.shen@mail.utoronto.ca>
1 parent 4557ebc commit 9433957

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apiVersion: spp-data-protection.isf.ibm.com/v1alpha1
2+
kind: Recipe
3+
metadata:
4+
labels:
5+
dp.isf.ibm.com/parent-recipe: cpfs-parent-recipe
6+
dp.isf.ibm.com/parent-recipe-namespace: <parent recipe namespace>
7+
name: ums-child
8+
namespace: <child recipe namespace>
9+
spec:
10+
appType: common-service
11+
groups:
12+
- includeClusterResources: true
13+
includedResourceTypes:
14+
- customresourcedefinitions.apiextensions.k8s.io
15+
labelSelector: foundationservices.cloudpak.ibm.com=ums
16+
name: ums-crd
17+
type: resource
18+
- includedResourceTypes:
19+
- configmaps
20+
- ibmservicemeterdefinitions.operator.ibm.com
21+
- ibmusagemeterings.operator.ibm.com
22+
- subscriptions.operators.coreos.com
23+
labelSelector: foundationservices.cloudpak.ibm.com=ums
24+
name: ums-resources
25+
type: resource
26+
hooks:
27+
- chks:
28+
- condition: '{$.status.phase} == {"Running"}'
29+
name: podReady
30+
onError: fail
31+
timeout: 600
32+
labelSelector: app.kubernetes.io/name=ibm-usage-metering
33+
name: ums-operator-check
34+
namespace: <child recipe namespace>
35+
onError: fail
36+
selectResource: pod
37+
timeout: 600
38+
type: check
39+
workflows:
40+
- name: post-backup
41+
sequence:
42+
# UMS resources
43+
- group: ums-crd
44+
- group: ums-resources
45+
- name: data-restore
46+
sequence:
47+
# UMS restore
48+
- group: ums-crd
49+
- group: ums-resources
50+
- hook: ums-operator-check/podReady

0 commit comments

Comments
 (0)