Added hook delete policy for CRD in rook-ceph
[demo.git] / vnfs / DAaaS / deploy / 00-init / rook-ceph / templates / resources.yaml
1 ---
2 apiVersion: apiextensions.k8s.io/v1beta1
3 kind: CustomResourceDefinition
4 metadata:
5   name: cephclusters.ceph.rook.io
6   annotations:
7     "helm.sh/hook": crd-install
8     "helm.sh/hook-delete-policy": before-hook-creation
9 spec:
10   group: ceph.rook.io
11   names:
12     kind: CephCluster
13     listKind: CephClusterList
14     plural: cephclusters
15     singular: cephcluster
16   scope: Namespaced
17   version: v1
18   validation:
19     openAPIV3Schema:
20       properties:
21         spec:
22           properties:
23             cephVersion:
24               properties:
25                 allowUnsupported:
26                   type: boolean
27                 image:
28                   type: string
29                 name:
30                   pattern: ^(luminous|mimic|nautilus)$
31                   type: string
32             dashboard:
33               properties:
34                 enabled:
35                   type: boolean
36                 urlPrefix:
37                   type: string
38                 port:
39                   type: integer
40                   minimum: 0
41                   maximum: 65535
42             dataDirHostPath:
43               pattern: ^/(\S+)
44               type: string
45             mon:
46               properties:
47                 allowMultiplePerNode:
48                   type: boolean
49                 count:
50                   maximum: 9
51                   minimum: 1
52                   type: integer
53               required:
54               - count
55             network:
56               properties:
57                 hostNetwork:
58                   type: boolean
59             storage:
60               properties:
61                 nodes:
62                   items: {}
63                   type: array
64                 useAllDevices: {}
65                 useAllNodes:
66                   type: boolean
67           required:
68           - mon
69   additionalPrinterColumns:
70     - name: DataDirHostPath
71       type: string
72       description: Directory used on the K8s nodes
73       JSONPath: .spec.dataDirHostPath
74     - name: MonCount
75       type: string
76       description: Number of MONs
77       JSONPath: .spec.mon.count
78     - name: Age
79       type: date
80       JSONPath: .metadata.creationTimestamp
81     - name: State
82       type: string
83       description: Current State
84       JSONPath: .status.state
85 ---
86 apiVersion: apiextensions.k8s.io/v1beta1
87 kind: CustomResourceDefinition
88 metadata:
89   name: cephfilesystems.ceph.rook.io
90   annotations:
91     "helm.sh/hook": crd-install
92     "helm.sh/hook-delete-policy": before-hook-creation
93 spec:
94   group: ceph.rook.io
95   names:
96     kind: CephFilesystem
97     listKind: CephFilesystemList
98     plural: cephfilesystems
99     singular: cephfilesystem
100   scope: Namespaced
101   version: v1
102   additionalPrinterColumns:
103     - name: MdsCount
104       type: string
105       description: Number of MDSs
106       JSONPath: .spec.metadataServer.activeCount
107     - name: Age
108       type: date
109       JSONPath: .metadata.creationTimestamp
110 ---
111 apiVersion: apiextensions.k8s.io/v1beta1
112 kind: CustomResourceDefinition
113 metadata:
114   name: cephobjectstores.ceph.rook.io
115   annotations:
116     "helm.sh/hook": crd-install
117     "helm.sh/hook-delete-policy": before-hook-creation
118 spec:
119   group: ceph.rook.io
120   names:
121     kind: CephObjectStore
122     listKind: CephObjectStoreList
123     plural: cephobjectstores
124     singular: cephobjectstore
125   scope: Namespaced
126   version: v1
127 ---
128 apiVersion: apiextensions.k8s.io/v1beta1
129 kind: CustomResourceDefinition
130 metadata:
131   name: cephobjectstoreusers.ceph.rook.io
132   annotations:
133     "helm.sh/hook": crd-install
134     "helm.sh/hook-delete-policy": before-hook-creation
135 spec:
136   group: ceph.rook.io
137   names:
138     kind: CephObjectStoreUser
139     listKind: CephObjectStoreUserList
140     plural: cephobjectstoreusers
141     singular: cephobjectstoreuser
142     shortNames:
143     - rcou
144     - objectuser
145   scope: Namespaced
146   version: v1
147 ---
148 apiVersion: apiextensions.k8s.io/v1beta1
149 kind: CustomResourceDefinition
150 metadata:
151   name: cephblockpools.ceph.rook.io
152   annotations:
153     "helm.sh/hook": crd-install
154     "helm.sh/hook-delete-policy": before-hook-creation
155 spec:
156   group: ceph.rook.io
157   names:
158     kind: CephBlockPool
159     listKind: CephBlockPoolList
160     plural: cephblockpools
161     singular: cephblockpool
162   scope: Namespaced
163   version: v1
164 ---
165 apiVersion: apiextensions.k8s.io/v1beta1
166 kind: CustomResourceDefinition
167 metadata:
168   name: volumes.rook.io
169   annotations:
170     "helm.sh/hook": crd-install
171     "helm.sh/hook-delete-policy": before-hook-creation
172 spec:
173   group: rook.io
174   names:
175     kind: Volume
176     listKind: VolumeList
177     plural: volumes
178     singular: volume
179     shortNames:
180     - rv
181   scope: Namespaced
182   version: v1alpha2
183 ---