1212 default : " cloud-pak-deployer"
1313 - name : storage-class
1414 type : string
15- description : RWX storage class needed for cp4d
15+ description : storage class for the cloud pak deployer PVC
1616 default : " ocs-storagecluster-cephfs"
17+ - name : custom-file-storage-class
18+ type : string
19+ description : Custom RWX storage class needed for cp4d
20+ default : " ocs-storagecluster-cephfs"
21+ - name : custom-block-storage-class
22+ type : string
23+ description : Custom block storage class needed for cp4d
24+ default : " ocs-storagecluster-ceph-rbd"
1725 - name : cloud-pak-deployer-storage-class
1826 type : string
1927 description : |
3442 "options": [
3543 {"text": "auto","value": "auto", "default": "true"},
3644 {"text": "ocs","value": "ocs"},
45+ {"text": "custom","value": "custom"},
3746 {"text": "nfs","value": "nfs"}
3847 ]
3948 }
@@ -1499,6 +1508,15 @@ spec:
14991508 params :
15001509 - name : SCRIPT
15011510 value : |
1511+
1512+ if [[ "$(params.cloud-pak-deployer-storage-type)" == "custom" ]]; then
1513+ custom_file_class_yml="ocp_storage_class_file: $(params.custom-file-storage-class)"
1514+ custom_block_class_yml="ocp_storage_class_block: $(params.custom-block-storage-class)"
1515+ else
1516+ custom_file_class_yml=""
1517+ custom_block_class_yml=""
1518+ fi
1519+
15021520 oc apply -f - <<EOF
15031521 apiVersion: v1
15041522 kind: ConfigMap
@@ -1525,6 +1543,8 @@ spec:
15251543 openshift_storage:
15261544 - storage_name: $(params.cloud-pak-deployer-storage-class)
15271545 storage_type: $(params.cloud-pak-deployer-storage-type)
1546+ $custom_file_class_yml
1547+ $custom_block_class_yml
15281548
15291549 #
15301550 # All tested cartridges. To install, change the "state" property to "installed". To uninstall, change the state
0 commit comments