[ceph-provisioners] Validate each storageclass created
This is to include every storageclass getting created part of helm tests. Change-Id: I62dc11600d00fe2ec7babb1688e61d3eaa50100c
This commit is contained in:
parent
e74674324b
commit
7c8ca55ac0
@ -15,6 +15,6 @@ apiVersion: v1
|
|||||||
appVersion: v1.0.0
|
appVersion: v1.0.0
|
||||||
description: OpenStack-Helm Ceph Provisioner
|
description: OpenStack-Helm Ceph Provisioner
|
||||||
name: ceph-provisioners
|
name: ceph-provisioners
|
||||||
version: 0.1.1
|
version: 0.1.2
|
||||||
home: https://github.com/ceph/ceph
|
home: https://github.com/ceph/ceph
|
||||||
...
|
...
|
||||||
|
@ -174,19 +174,21 @@ EOF
|
|||||||
reset_test_env $PVC_NAMESPACE $RBD_TEST_POD_NAME $RBD_TEST_PVC_NAME
|
reset_test_env $PVC_NAMESPACE $RBD_TEST_POD_NAME $RBD_TEST_PVC_NAME
|
||||||
reset_test_env $PVC_NAMESPACE $CEPHFS_TEST_POD_NAME $CEPHFS_TEST_PVC_NAME
|
reset_test_env $PVC_NAMESPACE $CEPHFS_TEST_POD_NAME $CEPHFS_TEST_PVC_NAME
|
||||||
|
|
||||||
if [ {{ .Values.storageclass.rbd.provision_storage_class }} == true ];
|
{{- range $storageclass, $val := .Values.storageclass }}
|
||||||
|
if [ {{ $val.provisioner }} == "ceph.com/rbd" ] && [ {{ $val.provision_storage_class }} == true ];
|
||||||
then
|
then
|
||||||
echo "--> Checking RBD storage class."
|
echo "--> Checking RBD storage class."
|
||||||
storageclass={{ .Values.storageclass.rbd.metadata.name }}
|
storageclass={{ $val.metadata.name }}
|
||||||
|
|
||||||
storageclass_validation $PVC_NAMESPACE $RBD_TEST_POD_NAME $RBD_TEST_PVC_NAME $storageclass
|
storageclass_validation $PVC_NAMESPACE $RBD_TEST_POD_NAME $RBD_TEST_PVC_NAME $storageclass
|
||||||
reset_test_env $PVC_NAMESPACE $RBD_TEST_POD_NAME $RBD_TEST_PVC_NAME
|
reset_test_env $PVC_NAMESPACE $RBD_TEST_POD_NAME $RBD_TEST_PVC_NAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ {{ .Values.storageclass.cephfs.provision_storage_class }} == true ];
|
if [ {{ $val.provisioner }} == "ceph.com/cephfs" ] && [ {{ $val.provision_storage_class }} == true ];
|
||||||
then
|
then
|
||||||
echo "--> Checking cephfs storage class."
|
echo "--> Checking cephfs storage class."
|
||||||
storageclass={{ .Values.storageclass.cephfs.metadata.name }}
|
storageclass={{ $val.metadata.name }}
|
||||||
storageclass_validation $PVC_NAMESPACE $CEPHFS_TEST_POD_NAME $CEPHFS_TEST_PVC_NAME $storageclass
|
storageclass_validation $PVC_NAMESPACE $CEPHFS_TEST_POD_NAME $CEPHFS_TEST_PVC_NAME $storageclass
|
||||||
reset_test_env $PVC_NAMESPACE $CEPHFS_TEST_POD_NAME $CEPHFS_TEST_PVC_NAME
|
reset_test_env $PVC_NAMESPACE $CEPHFS_TEST_POD_NAME $CEPHFS_TEST_PVC_NAME
|
||||||
fi
|
fi
|
||||||
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user