Skip to content

Commit

Permalink
ci: create default subvolumegroup
Browse files Browse the repository at this point in the history
Signed-off-by: Praveen M <[email protected]>
  • Loading branch information
iPraveenParihar committed Nov 9, 2023
1 parent 3572a38 commit eb12e93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PendingReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Breaking Changes

- Removed the deprecated grpc metrics flag's in [PR](https://github.com/ceph/ceph-csi/pull/4225)

- Support for pre-creation of cephFS subvolumegroup before creating subvolume
is removed in [PR](https://github.com/ceph/ceph-csi/pull/4195)

Expand Down
7 changes: 6 additions & 1 deletion scripts/rook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,17 @@ function deploy_rook() {
cat "${TEMP_DIR}"/cluster-test.yaml
kubectl_retry create -f "${TEMP_DIR}/cluster-test.yaml"
fi
rm -rf "${TEMP_DIR}"

kubectl_retry create -f "${ROOK_URL}/toolbox.yaml"
kubectl_retry create -f "${ROOK_URL}/filesystem-test.yaml"
kubectl_retry create -f "${ROOK_URL}/pool-test.yaml"

# Create the default `csi` subvolumegroup
curl -o "${TEMP_DIR}/subvolumegroup.yaml" "${ROOK_URL}/subvolumegroup.yaml"
sed -i "s|name:.*|name: csi|g" "${TEMP_DIR}/subvolumegroup.yaml"

rm -rf "${TEMP_DIR}"

# Check if CephCluster is empty
if ! kubectl_retry -n rook-ceph get cephclusters -oyaml | grep 'items: \[\]' &>/dev/null; then
check_ceph_cluster_health
Expand Down

0 comments on commit eb12e93

Please sign in to comment.