csi: move csi management to admin
Going forward, admin will manage the csi operator CR's and rook will only manage Ceph Connection cr and client Profile cr. The old csi driver is completely removed from Rook and can no longer be used starting in Rook v1.20. The upgrade guide will contain the needed transition steps for managing the csi operator settings. Signed-off-by: subhamkrai <srai@redhat.com>
This commit is contained in:
1 parent
b50f1a3d60
commit
4eefad42e8
84 files changed
+515
-9262
No files matched your search
@@ -122,7 +122,8 @@ create_rook_cluster() {
|
||||
if ! kubectl get namespace "$ROOK_OPERATOR_NS" &> /dev/null; then
|
||||
kubectl create namespace "$ROOK_OPERATOR_NS"
|
||||
fi
|
||||
$KUBECTL apply -f crds.yaml -f common.yaml -f operator.yaml -f csi-operator.yaml
|
||||
$KUBECTL apply -f crds.yaml -f common.yaml -f csi-operator.yaml
|
||||
$KUBECTL apply -f operator.yaml
|
||||
$KUBECTL apply -f "$ROOK_CLUSTER_SPEC_FILE" -f toolbox.yaml
|
||||
$KUBECTL apply -f dashboard-external-http.yaml
|
||||
}
|
||||
|
||||
@@ -271,7 +271,7 @@ function build_rook_all() {
|
||||
|
||||
function validate_yaml() {
|
||||
cd "${REPO_DIR}/deploy/examples"
|
||||
kubectl create -f crds.yaml -f common.yaml -f csi/nfs/rbac.yaml
|
||||
kubectl create -f crds.yaml -f common.yaml -f csi-operator.yaml
|
||||
|
||||
# create the volume replication CRDs
|
||||
replication_version=v0.3.0
|
||||
@@ -297,15 +297,14 @@ function validate_yaml() {
|
||||
|
||||
function create_cluster_prerequisites() {
|
||||
# this might be called from another function that has already done a cd
|
||||
(cd "${REPO_DIR}/deploy/examples" && kubectl create -f crds.yaml -f common.yaml -f csi/nfs/rbac.yaml)
|
||||
(cd "${REPO_DIR}/deploy/examples" && kubectl create -f crds.yaml -f common.yaml -f csi-operator.yaml)
|
||||
}
|
||||
|
||||
function remove_cluster_prerequisites() {
|
||||
(cd "${REPO_DIR}/deploy/examples" && kubectl delete -f crds.yaml -f common.yaml -f csi/nfs/rbac.yaml)
|
||||
(cd "${REPO_DIR}/deploy/examples" && kubectl delete -f crds.yaml -f common.yaml)
|
||||
}
|
||||
|
||||
function deploy_manifest_with_local_build() {
|
||||
sed -i 's/.*ROOK_CSI_ENABLE_NFS:.*/ ROOK_CSI_ENABLE_NFS: \"true\"/g' $1
|
||||
if [[ "$USE_LOCAL_BUILD" != "false" ]]; then
|
||||
sed -i "s|image: docker.io/rook/ceph:.*|image: docker.io/rook/ceph:local-build|g" $1
|
||||
fi
|
||||
@@ -348,7 +347,6 @@ function deploy_cluster() {
|
||||
cd "${REPO_DIR}/deploy/examples"
|
||||
|
||||
deploy_manifest_with_local_build operator.yaml
|
||||
kubectl create -f csi-operator.yaml
|
||||
|
||||
if [ $# == 0 ]; then
|
||||
sed -i "s|#deviceFilter:|deviceFilter: $(block_dev_basename)|g" cluster-test.yaml
|
||||
@@ -410,6 +408,7 @@ function deploy_csi_hostnetwork_disabled_cluster() {
|
||||
cd "${REPO_DIR}/deploy/examples"
|
||||
sed -i 's/.*CSI_ENABLE_HOST_NETWORK:.*/ CSI_ENABLE_HOST_NETWORK: \"false\"/g' operator.yaml
|
||||
deploy_manifest_with_local_build operator.yaml
|
||||
deploy_manifest_with_local_build csi/nfs/driver.yaml
|
||||
if [ $# == 0 ]; then
|
||||
sed -i "s|#deviceFilter:|deviceFilter: $(block_dev_basename)|g" cluster-test.yaml
|
||||
elif [ "$1" = "two_osds_in_device" ]; then
|
||||
@@ -531,7 +530,6 @@ function deploy_first_rook_cluster() {
|
||||
cd "${REPO_DIR}/deploy/examples"
|
||||
|
||||
deploy_manifest_with_local_build operator.yaml
|
||||
deploy_manifest_with_local_build csi-operator.yaml
|
||||
yq w -i -d0 cluster-test.yaml spec.dashboard.enabled false
|
||||
yq w -i -d0 cluster-test.yaml spec.storage.useAllDevices false
|
||||
yq w -i -d0 cluster-test.yaml spec.storage.deviceFilter "${DEVICE_NAME}"[1-3]
|
||||
|
||||
Reference in new issue
Block a user