Skip to content

Commit

Permalink
Merge pull request rook#13347 from parth-gr/svg-add-cr
Browse files Browse the repository at this point in the history
subvolumegroup: add default csi svg CR to filesystem CR
  • Loading branch information
travisn authored Dec 11, 2023
2 parents b36b4f0 + 31bd3bc commit 41404c1
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
11 changes: 11 additions & 0 deletions deploy/charts/rook-ceph-cluster/templates/cephfilesystem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
{{- range $filesystem := .Values.cephFileSystems -}}
---
apiVersion: ceph.rook.io/v1
kind: CephFilesystemSubVolumeGroup
metadata:
name: {{ $filesystem.name }}-csi # lets keep the svg crd name same as `filesystem name + csi` for the default csi svg
namespace: {{ $root.Release.Namespace }} # namespace:cluster
spec:
# The name of the subvolume group. If not set, the default is the name of the subvolumeGroup CR.
name: csi
# filesystemName is the metadata name of the CephFilesystem CR where the subvolume group will be created
filesystemName: {{ $filesystem.name }}
---
apiVersion: ceph.rook.io/v1
kind: CephFilesystem
metadata:
name: {{ $filesystem.name }}
Expand Down
12 changes: 12 additions & 0 deletions deploy/examples/filesystem-ec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,15 @@ spec:
# cpu: "500m"
# memory: "1024Mi"
# priorityClassName: my-priority-class
---
# create default csi subvolume group
apiVersion: ceph.rook.io/v1
kind: CephFilesystemSubVolumeGroup
metadata:
name: myfs-csi # lets keep the svg crd name same as `filesystem name + csi` for the default csi svg
namespace: rook-ceph # namespace:cluster
spec:
# The name of the subvolume group. If not set, the default is the name of the subvolumeGroup CR.
name: csi
# filesystemName is the metadata name of the CephFilesystem CR where the subvolume group will be created
filesystemName: myfs
12 changes: 12 additions & 0 deletions deploy/examples/filesystem-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,15 @@ spec:
metadataServer:
activeCount: 1
activeStandby: true
---
# create default csi subvolume group
apiVersion: ceph.rook.io/v1
kind: CephFilesystemSubVolumeGroup
metadata:
name: myfs-csi # lets keep the svg crd name same as `filesystem name + csi` for the default csi svg
namespace: rook-ceph # namespace:cluster
spec:
# The name of the subvolume group. If not set, the default is the name of the subvolumeGroup CR.
name: csi
# filesystemName is the metadata name of the CephFilesystem CR where the subvolume group will be created
filesystemName: myfs
12 changes: 12 additions & 0 deletions deploy/examples/filesystem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,15 @@ spec:
# snapshotRetention:
# - path: /
# duration: "h 24"
---
# create default csi subvolume group
apiVersion: ceph.rook.io/v1
kind: CephFilesystemSubVolumeGroup
metadata:
name: myfs-csi # lets keep the svg crd name same as `filesystem name + csi` for the default csi svg
namespace: rook-ceph # namespace:cluster
spec:
# The name of the subvolume group. If not set, the default is the name of the subvolumeGroup CR.
name: csi
# filesystemName is the metadata name of the CephFilesystem CR where the subvolume group will be created
filesystemName: myfs

0 comments on commit 41404c1

Please sign in to comment.